/* Custom Order Form Frontend Styles - Multi-Step */
.cof-order-form {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Progress Indicator */
.cof-progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 20px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.cof-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cof-step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.cof-progress-step.active .cof-step-number {
    background: #3498db;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.cof-progress-step.completed .cof-step-number {
    background: #27ae60;
    color: #fff;
}

.cof-step-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.cof-progress-step.active .cof-step-label {
    color: #3498db;
}

.cof-progress-step.completed .cof-step-label {
    color: #27ae60;
}

.cof-progress-line {
    width: 150px;
    height: 3px;
    background: #e0e0e0;
    margin: 0 10px 30px 10px;
    position: relative;
    z-index: 1;
}

.cof-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.cof-form-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #2c3e50;
}

.cof-form-description {
    font-size: 1.1em;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.cof-form-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.cof-form-main {
    flex: 1;
    min-width: 0;
}

.cof-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Step Content */
.cof-step-content {
    min-height: 400px;
}

/* Form Sections */
.cof-form-section {
    padding: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.cof-form-section:last-of-type {
    border-bottom: none;
}

.cof-section-title {
    font-size: 1.3em;
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-weight: 600;
}

.cof-required {
    color: #e74c3c;
    margin-left: 3px;
}

.cof-section-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
    /* Force file upload sections to take full width */
    .cof-section-content:has(.cof-file-upload-wrapper) {
    display: block; /* Override grid for file upload sections */
    }

    .cof-section-content .cof-file-upload-wrapper {
    width: 100%;
    max-width: 100%;
    }
/* Radio and Checkbox Labels */
.cof-radio-label,
.cof-checkbox-label {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.cof-radio-label:hover,
.cof-checkbox-label:hover {
    border-color: #3498db;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.cof-radio-label input[type="radio"],
.cof-checkbox-label input[type="checkbox"] {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 1;
    opacity: 0; /* Hide the native input */
    pointer-events: none; /* Prevent direct interaction */
}

.cof-radio-label input[type="radio"]:checked,
.cof-checkbox-label input[type="checkbox"]:checked {
    accent-color: #3498db;
}

.cof-radio-label:has(input:checked),
.cof-checkbox-label:has(input:checked) {
    border-color: #3498db;
    background: #e8f4fd;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

/* Options WITH thumbnails */
.cof-radio-label.has-thumbnail,
.cof-checkbox-label.has-thumbnail {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 15px;
    min-height: 200px;
}

.cof-radio-label.has-thumbnail input[type="radio"],
.cof-checkbox-label.has-thumbnail input[type="checkbox"] {
    top: 15px;
    left: 15px;
}

.cof-option-thumbnail {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cof-option-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cof-radio-label:hover .cof-option-thumbnail img,
.cof-checkbox-label:hover .cof-option-thumbnail img {
    transform: scale(1.05);
}

.cof-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.cof-option-label {
    font-size: 1.05em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

/* Options WITHOUT thumbnails */
.cof-radio-label:not(.has-thumbnail),
.cof-checkbox-label:not(.has-thumbnail) {
    flex-direction: row;
    padding: 20px;
}

.cof-radio-label:not(.has-thumbnail) input,
.cof-checkbox-label:not(.has-thumbnail) input {
    left: 20px;
}

.cof-radio-label:not(.has-thumbnail) .cof-option-content,
.cof-checkbox-label:not(.has-thumbnail) .cof-option-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.cof-radio-label:not(.has-thumbnail) .cof-option-label,
.cof-checkbox-label:not(.has-thumbnail) .cof-option-label {
    text-align: left;
}

.cof-option-price {
    font-weight: 600;
    color: #27ae60;
    font-size: 1.05em;
}

/* Grid layout for options with thumbnails */
.cof-section-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Override grid for single column when no thumbnails */
.cof-section-content:has(.cof-radio-label:not(.has-thumbnail)),
.cof-section-content:has(.cof-checkbox-label:not(.has-thumbnail)) {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Contact Form Fields */
.cof-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.cof-field {
    display: flex;
    flex-direction: column;
}

.cof-field.cof-full-width {
    grid-column: 1 / -1;
}

.cof-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 0.95em;
}

.cof-checkbox-account {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    cursor: pointer;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.cof-checkbox-account:hover {
    border-color: #3498db;
    background: #e8f4fd;
}

.cof-checkbox-account input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Select Dropdown */
.cof-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.cof-select:focus {
    outline: none;
    border-color: #3498db;
}

/* Text Inputs */
.cof-text-input,
.cof-quantity-input,
.cof-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.cof-text-input:focus,
.cof-quantity-input:focus,
.cof-textarea:focus {
    outline: none;
    border-color: #3498db;
}

.cof-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.cof-quantity-input {
    max-width: 200px;
}

/* File Upload - Enhanced Drop Zone */
.cof-file-upload-wrapper {
    position: relative;
    width: 100%;
    grid-column: 1 / -1; 
}

.cof-drop-zone {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cof-drop-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(52, 152, 219, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cof-drop-zone:hover {
    border-color: #3498db;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.15);
}

.cof-drop-zone:hover::before {
    opacity: 1;
}

.cof-drop-zone.drag-over {
    border-color: #2ecc71;
    background: linear-gradient(135deg, #e6ffed 0%, #c3f9d2 100%);
    border-style: solid;
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.25);
}

.cof-drop-zone.uploading {
    border-color: #f39c12;
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    pointer-events: none;
}

.cof-drop-zone.has-file {
    border-color: #27ae60;
    background: linear-gradient(135deg, #e8f5e9 0%, #a7f3d0 100%);
}

.cof-drop-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cof-drop-zone:hover .cof-drop-icon {
    background: rgba(52, 152, 219, 0.2);
    transform: scale(1.1) rotateZ(5deg);
}

.cof-drop-zone.drag-over .cof-drop-icon {
    background: rgba(46, 204, 113, 0.2);
    transform: scale(1.15) rotateZ(-5deg);
}

.cof-drop-icon svg {
    color: #3498db;
    filter: drop-shadow(0 2px 4px rgba(52, 152, 219, 0.2));
    transition: all 0.3s ease;
}

.cof-drop-zone:hover .cof-drop-icon svg {
    color: #2980b9;
}

.cof-drop-zone.drag-over .cof-drop-icon svg {
    color: #27ae60;
}

.cof-drop-text {
    margin-bottom: 20px;
}

.cof-drop-main-text {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.cof-drop-zone:hover .cof-drop-main-text {
    color: #3498db;
}

.cof-drop-zone.drag-over .cof-drop-main-text {
    color: #27ae60;
}

.cof-drop-sub-text {
    font-size: 0.95em;
    color: #718096;
    margin: 0;
    font-weight: 500;
}

.cof-drop-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cof-field-description {
    font-size: 0.85em;
    color: #718096;
    margin: 0;
    font-style: normal;
    line-height: 1.5;
}

/* File Preview */
.cof-file-preview {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cof-preview-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
}

.cof-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cof-preview-file {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
}

.cof-file-icon {
    font-size: 3em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.cof-preview-info {
    flex: 1;
    min-width: 0;
}

.cof-file-name {
    font-size: 1em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
    word-break: break-word;
}

.cof-file-size {
    font-size: 0.9em;
    color: #718096;
    margin-bottom: 12px;
}

.cof-upload-progress {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
}

.cof-upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cof-upload-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.cof-upload-progress-text {
    font-size: 0.85em;
    color: #4a5568;
    font-weight: 600;
    margin-top: 5px;
    display: inline-block;
}

.cof-remove-file {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #e53e3e;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}

.cof-remove-file:hover {
    background: #fed7d7;
    border-color: #fc8181;
    transform: rotate(90deg) scale(1.1);
}

.cof-remove-file span {
    display: block;
    margin-top: -2px;
}

/* Step Navigation Buttons */
.cof-step-navigation {
    padding: 30px;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

.cof-next-btn,
.cof-prev-btn,
.cof-submit-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cof-next-btn {
    background: #3498db;
    color: #fff;
    margin-left: auto;
}

.cof-next-btn:hover {
    background: #2980b9;
    transform: translateX(5px);
}

.cof-prev-btn {
    background: #95a5a6;
    color: #fff;
}

.cof-prev-btn:hover {
    background: #7f8c8d;
    transform: translateX(-5px);
}

.cof-submit-btn {
    background: #27ae60;
    color: #fff;
    flex: 1;
}

.cof-submit-btn:hover {
    background: #229954;
}

.cof-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* Order Summary Sidebar */
.cof-form-sidebar {
    width: 350px;
    flex-shrink: 0;
}

.cof-order-summary {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    position: sticky;
    top: 20px;
}

.cof-order-summary h3 {
    margin: 0 0 20px 0;
    font-size: 1.4em;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.cof-summary-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cof-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95em;
}

.cof-summary-item:last-child {
    border-bottom: none;
}

.cof-summary-item span:first-child {
    color: #666;
    flex: 1;
}

.cof-summary-item span:last-child {
    font-weight: 600;
    color: #27ae60;
}

.cof-summary-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    font-size: 1.3em;
    font-weight: 700;
}

.cof-summary-total span:first-child {
    color: #2c3e50;
}

.cof-total-price {
    color: #3498db !important;
}

.cof-base-price {
    color: #27ae60;
}

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

.cof-success-icon {
    width: 100px;
    height: 100px;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5em;
    margin: 0 auto 30px auto;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cof-success-message h2 {
    color: #27ae60;
    font-size: 2.2em;
    margin-bottom: 20px;
}

.cof-success-message p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
}

.cof-confirmation-box {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    border-radius: 6px;
}

.cof-confirmation-box h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.cof-confirmation-box p {
    margin: 8px 0;
    font-size: 1em;
    color: #555;
}

.cof-account-created {
    border-left-color: #27ae60;
    background: #e8f5e9;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cof-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@media (max-width: 1024px) {
    .cof-form-container {
        flex-direction: column; /* Changed from column-reverse to column */
    }
    
    .cof-form-sidebar {
        width: 100%;
        position: relative !important;
        top: auto !important;
        order: 2; /* Ensures sidebar appears after main content */
    }
    
    .cof-form-main {
        order: 1; /* Ensures main form appears first */
    }
    
    .cof-order-summary {
        position: static;
        margin-bottom: 0;
    }
    
    /* Add a subtle separator */
    .cof-order-summary::before {
        content: '';
        display: block;
        height: 3px;
        background: linear-gradient(90deg, transparent, #3498db, transparent);
        margin-bottom: 25px;
        border-radius: 2px;
    }
}

@media (max-width: 768px) {
    .cof-order-form {
        padding: 0 0px;
        margin: 20px auto;
    }
    
    .cof-progress-indicator {
                padding: 20px 5px;
        margin-left: 0px;
        margin-right: 0px;
        width: 100%;
    }
    
    .cof-progress-line {
        width: 60px;
        margin: 0 5px 30px 5px;
    }
    
    .cof-step-number {
        width: 36px;
        height: 36px;
        font-size: 1em;
    }
    
    .cof-step-label {
        font-size: 0.75em;
    }
    
    .cof-form-header h1 {
        font-size: 1.8em;
    }
    
    .cof-form-section {
        padding: 20px 15px;
    }
    
    .cof-section-content {
        grid-template-columns: 1fr;
    }
    

    
    .cof-radio-label.has-thumbnail,
    .cof-checkbox-label.has-thumbnail {
        flex-direction: row;
        text-align: left;
        padding: 15px;
        min-height: auto;
    }
    
    .cof-radio-label.has-thumbnail input[type="radio"],
    .cof-checkbox-label.has-thumbnail input[type="checkbox"] {
        top: 20px;
        left: 15px;
    }
    
    .cof-option-thumbnail {
        max-width: 80px;
        height: 80px;
        margin-bottom: 0;
        margin-right: 15px;
        flex-shrink: 0;
    }
    
    .cof-option-content {
        align-items: flex-start;
        text-align: left;
    }
    
    .cof-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .cof-step-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .cof-next-btn,
    .cof-prev-btn,
    .cof-submit-btn {
        width: 100%;
        font-size: 1em;
        padding: 15px 20px;
    }
    
    .cof-next-btn {
        margin-left: 0;
    }
    
    .cof-quantity-input {
        max-width: 100%;
    }
    
    .cof-success-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5em;
    }
    
    .cof-drop-zone {
        padding: 35px 20px;
    }
    
    .cof-drop-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .cof-drop-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .cof-drop-main-text {
        font-size: 1em;
    }
    
    .cof-drop-sub-text {
        font-size: 0.85em;
    }
    
    .cof-field-description {
        font-size: 0.8em;
    }
    
    .cof-file-preview {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .cof-preview-image,
    .cof-preview-file {
        width: 80px;
        height: 80px;
    }
    
    .cof-preview-info {
        width: 100%;
        text-align: center;
    }
    
    .cof-remove-file {
        align-self: center;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .cof-order-form {
        color: #e2e8f0;
    }
    
    .cof-form,
    .cof-order-summary,
    .cof-progress-indicator {
        background: #2d3748;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .cof-form-header h1,
    .cof-section-title,
    .cof-order-summary h3 {
        color: #f7fafc;
    }
    
    .cof-form-description,
    .cof-drop-sub-text,
    .cof-field-description {
        color: #cbd5e0;
    }
    
    .cof-radio-label,
    .cof-checkbox-label {
        background: #1a202c;
        border-color: #4a5568;
    }
    
    .cof-radio-label:hover,
    .cof-checkbox-label:hover {
        background: #2d3748;
    }
    
    .cof-radio-label:has(input:checked),
    .cof-checkbox-label:has(input:checked) {
        background: #2c5282;
        border-color: #3498db;
    }
    
    .cof-text-input,
    .cof-quantity-input,
    .cof-textarea,
    .cof-select {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .cof-text-input:focus,
    .cof-quantity-input:focus,
    .cof-textarea:focus,
    .cof-select:focus {
        border-color: #3498db;
        background: #1a202c;
    }
    
    .cof-drop-zone {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
    }
    
    .cof-drop-zone:hover {
        background: linear-gradient(135deg, #2c5282 0%, #2b6cb0 100%);
    }
    
    .cof-drop-main-text {
        color: #f7fafc;
    }
    
    .cof-file-preview {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .cof-file-name {
        color: #f7fafc;
    }
    
    .cof-file-size {
        color: #a0aec0;
    }
    
    .cof-summary-item {
        border-bottom-color: #4a5568;
    }
    
    .cof-summary-item span:first-child {
        color: #cbd5e0;
    }
    
    .cof-confirmation-box {
        background: #2d3748;
        border-left-color: #3498db;
    }
    
    .cof-confirmation-box h3 {
        color: #f7fafc;
    }
    
    .cof-confirmation-box p {
        color: #cbd5e0;
    }
    
    .cof-account-created {
        background: #22543d;
        border-left-color: #27ae60;
    }
}

/* Print styles */
@media print {
    .cof-progress-indicator,
    .cof-step-navigation,
    .cof-form-sidebar {
        display: none !important;
    }
    
    .cof-form-container {
        display: block;
    }
    
    .cof-form-main {
        width: 100%;
    }
    
    .cof-form-section {
        page-break-inside: avoid;
    }
    
    .cof-drop-zone {
        border-color: #000;
        background: #fff;
    }
}

/* Accessibility improvements */
.cof-radio-label:focus-within,
.cof-checkbox-label:focus-within {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

.cof-text-input:focus,
.cof-quantity-input:focus,
.cof-textarea:focus,
.cof-select:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.cof-next-btn:focus,
.cof-prev-btn:focus,
.cof-submit-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cof-drop-zone {
        border-width: 4px;
    }
    
    .cof-radio-label,
    .cof-checkbox-label {
        border-width: 3px;
    }
    
    .cof-text-input,
    .cof-quantity-input,
    .cof-textarea,
    .cof-select {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cof-drop-zone:hover {
        transform: none;
    }
    
    .cof-next-btn:hover,
    .cof-prev-btn:hover {
        transform: none;
    }
    
    .cof-remove-file:hover {
        transform: none;
    }
}

/* Additional utility classes */
.cof-hidden {
    display: none !important;
}

.cof-text-center {
    text-align: center;
}

.cof-text-right {
    text-align: right;
}

.cof-mt-10 {
    margin-top: 10px;
}

.cof-mt-20 {
    margin-top: 20px;
}

.cof-mb-10 {
    margin-bottom: 10px;
}

.cof-mb-20 {
    margin-bottom: 20px;
}

/* Error states */
.cof-error {
    border-color: #e74c3c !important;
}

.cof-error-message {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cof-error-message::before {
    content: '⚠';
    font-size: 1.2em;
}

/* Success states */
.cof-success {
    border-color: #27ae60 !important;
}

.cof-success-message-inline {
    color: #27ae60;
    font-size: 0.9em;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cof-success-message-inline::before {
    content: '✓';
    font-size: 1.2em;
}

/* Tooltip styles */
.cof-tooltip {
    position: relative;
    display: inline-block;
}

.cof-tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85em;
    line-height: 1.4;
}

.cof-tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
}

.cof-tooltip:hover .cof-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Badge styles */
.cof-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cof-badge-new {
    background: #3498db;
    color: #fff;
}

.cof-badge-popular {
    background: #e74c3c;
    color: #fff;
}

.cof-badge-recommended {
    background: #f39c12;
    color: #fff;
}

/* Skeleton loading states */
.cof-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.cof-skeleton-text {
    height: 16px;
    margin-bottom: 10px;
}

.cof-skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 15px;
}

.cof-skeleton-image {
    height: 200px;
    width: 100%;
}