/**
 * Bilinc Design Upload - Frontend Styles
 */

/* Main Wrapper */
.bilinc-design-upload-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
.bilinc-design-header {
    text-align: center;
    margin-bottom: 40px;
}

.bilinc-design-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.bilinc-design-header p {
    font-size: 16px;
    color: #666;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.form-section h3 {
    font-size: 22px;
    margin: 0 0 25px 0;
    color: #1a1a1a;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #dc3232;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 6px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* File Drop Zone */
.file-drop-zone {
    border: 2px dashed #0073aa;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    transition: all 0.3s;
    cursor: pointer;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
    background: #f0f8ff;
    border-color: #005a87;
    transform: scale(1.01);
}

.drop-zone-content .upload-icon {
    color: #0073aa;
    margin-bottom: 20px;
}

.drop-zone-content h4 {
    font-size: 20px;
    margin: 15px 0;
    color: #1a1a1a;
}

.drop-zone-content p {
    margin: 10px 0;
    color: #666;
}

.browse-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.browse-btn:hover {
    background: #005a87;
}

.file-info {
    font-size: 13px;
    color: #999;
    margin-top: 15px;
}

/* File Preview Container */
.file-preview-container {
    margin-top: 20px;
    display: none;
}

.file-preview-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.file-preview-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-preview-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.file-preview-icon img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
}

.file-type-icon {
    font-size: 40px;
}

.file-preview-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
    word-break: break-word;
}

.file-size {
    font-size: 13px;
    color: #666;
}

.remove-file-btn {
    background: #dc3232;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
}

.remove-file-btn:hover {
    background: #a00;
}

.remove-file-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.submit-btn:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-block;
}

.spinner {
    animation: rotate 1s linear infinite;
    width: 24px;
    height: 24px;
}

.spinner circle {
    stroke: #fff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.form-note {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 60px 20px;
}

.success-content {
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    color: #46b450;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

#reference-number {
    color: #0073aa;
    font-weight: 700;
}

.new-submission-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 40px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.new-submission-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .bilinc-design-upload-wrapper {
        padding: 15px;
        margin: 20px auto;
    }
    
    .bilinc-design-header h2 {
        font-size: 24px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .file-drop-zone {
        padding: 40px 15px;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
}
