/**
 * GLS Lens Selector - Lens Process Page Styles
 * Mobile-first design for the lens selection wizard
 */

/* ===================================
   Container & Layout
   =================================== */

.gls-lens-process-page {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px 0;
}

.gls-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===================================
   Error State
   =================================== */

.gls-error-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
}

.gls-error-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gls-error-icon {
    color: #e74c3c;
    margin-bottom: 20px;
}

.gls-error-box h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.gls-error-box p {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ===================================
   Wizard Wrapper
   =================================== */

.gls-wizard-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ===================================
   Wizard Header - Selected Frame
   =================================== */

.gls-wizard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    color: #ffffff;
}

.gls-selected-frame {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gls-frame-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gls-frame-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.gls-frame-info h2 {
    font-size: 22px;
    margin: 0 0 8px 0;
    color: #ffffff;
    font-weight: 600;
}

.gls-frame-price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.gls-change-frame {
    display: inline-block;
    color: #ffffff;
    text-decoration: underline;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.gls-change-frame:hover {
    opacity: 1;
    color: #ffffff;
}

/* ===================================
   Progress Steps
   =================================== */

.gls-progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    overflow-x: auto;
}

.gls-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 1;
    min-width: 80px;
}

.gls-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.gls-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.gls-step-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.gls-step.gls-step-active .gls-step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

.gls-step.gls-step-active .gls-step-label {
    color: #2c3e50;
    font-weight: 600;
}

.gls-step.gls-step-completed .gls-step-number {
    background: #28a745;
    color: #ffffff;
}

.gls-step.gls-step-completed::after {
    background: #28a745;
}

/* ===================================
   Wizard Content
   =================================== */

.gls-wizard-content {
    padding: 40px 30px;
    min-height: 400px;
}

.gls-wizard-step {
    display: none !important;
}

.gls-wizard-step.gls-step-active {
    display: block !important;
    animation: fadeIn 0.3s ease-in;
}

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

.gls-wizard-step h3 {
    font-size: 24px;
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-weight: 600;
}

/* ===================================
   Placeholder Message
   =================================== */

.gls-placeholder-message {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 60px 30px;
    text-align: center;
    color: #6c757d;
}

.gls-placeholder-message svg {
    color: #667eea;
    margin-bottom: 20px;
}

.gls-placeholder-message p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.6;
}

.gls-placeholder-details {
    font-size: 14px;
    color: #95a5a6;
}

/* ===================================
   Wizard Navigation
   =================================== */

.gls-wizard-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

/* ===================================
   Buttons
   =================================== */

.gls-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.gls-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.gls-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

.gls-button-primary:disabled {
    background: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gls-button-secondary {
    background: #ffffff;
    color: #2c3e50;
    border: 2px solid #dee2e6;
}

.gls-button-secondary:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #2c3e50;
}

.gls-button-outline {
    background: #ffffff;
    color: #667eea;
    border: 2px solid #667eea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gls-button-outline:hover {
    background: #667eea;
    color: #ffffff;
}

.gls-step1-upload-shortcut {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    text-align: center;
}

.gls-step1-upload-shortcut p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #6c757d;
}

.gls-axis-select.gls-needs-attention {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

@keyframes glsPulseHighlight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
}

.gls-pulse-highlight {
    animation: glsPulseHighlight 1s ease-in-out 3;
}

/* ===================================
   Mobile Responsive
   =================================== */

@media (max-width: 768px) {
    .gls-container {
        padding: 0 10px;
    }
    
    .gls-wizard-header {
        padding: 20px;
    }
    
    .gls-selected-frame {
        flex-direction: column;
        text-align: center;
    }
    
    .gls-frame-image {
        width: 80px;
        height: 80px;
    }
    
    .gls-frame-info h2 {
        font-size: 18px;
    }
    
    .gls-frame-price {
        font-size: 18px;
    }
    
    .gls-progress-steps {
        padding: 20px 15px;
        gap: 5px;
    }
    
    .gls-step {
        min-width: 70px;
    }
    
    .gls-step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .gls-step-label {
        font-size: 11px;
    }
    
    .gls-step:not(:last-child)::after {
        top: 17px;
    }
    
    .gls-wizard-content {
        padding: 25px 15px;
    }
    
    .gls-wizard-step h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .gls-placeholder-message {
        padding: 40px 20px;
    }
    
    .gls-wizard-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .gls-button {
        width: 100%;
        padding: 14px 20px;
    }
    
    .gls-error-box {
        padding: 30px 20px;
    }
    
    .gls-error-box h2 {
        font-size: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gls-container {
        max-width: 900px;
    }
    
    .gls-progress-steps {
        padding: 25px;
    }
    
    .gls-wizard-content {
        padding: 35px 25px;
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .gls-wizard-navigation,
    .gls-progress-steps,
    .gls-help-stack {
        display: none;
    }
}

/* ===================================
   Help Buttons (WhatsApp + Request Callback)
   =================================== */

.gls-help-stack {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 12px;
}

.gls-whatsapp-help,
.gls-callback-help {
    position: relative;
}

.gls-whatsapp-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.gls-whatsapp-button:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.gls-whatsapp-button svg {
    flex-shrink: 0;
}

.gls-whatsapp-help.gls-whatsapp-pulse .gls-whatsapp-button {
    animation: gls-pulse 2s infinite;
}

@keyframes gls-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.2);
    }
}

.gls-callback-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #2c3e50;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4);
    transition: all 0.3s ease;
}

.gls-callback-button:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.5);
}

.gls-callback-button svg {
    flex-shrink: 0;
}

.gls-callback-form {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    padding: 16px;
}

.gls-callback-form p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #495057;
}

.gls-callback-form input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.gls-callback-form .gls-button {
    width: 100%;
    min-width: 0;
    padding: 10px;
}

.gls-callback-status {
    margin-top: 8px;
    font-size: 13px;
    min-height: 16px;
}

/* ===================================
   Step Description
   =================================== */

.gls-step-description {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ===================================
   Option Cards (Grid Layout)
   =================================== */

.gls-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gls-option-card {
    position: relative;
    cursor: pointer;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #ffffff;
}

.gls-option-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.gls-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gls-option-card input[type="radio"]:checked + .gls-option-content {
    color: #667eea;
}

.gls-option-card input[type="radio"]:checked ~ .gls-option-content .gls-option-check {
    opacity: 1;
    transform: scale(1);
}

.gls-option-card input[type="radio"]:checked + .gls-option-content .gls-option-icon {
    color: #667eea;
}

.gls-option-content {
    position: relative;
}

.gls-option-icon {
    color: #95a5a6;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.gls-option-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 10px;
}

.gls-option-check {
    position: absolute;
    top: -15px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: #667eea;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

/* ===================================
   Option Rows (List Layout)
   =================================== */

.gls-options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.gls-option-row {
    position: relative;
    cursor: pointer;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    background: #ffffff;
}

.gls-option-row:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.gls-option-row input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gls-option-row input[type="radio"]:checked ~ .gls-option-row-content {
    color: #667eea;
}

.gls-option-row input[type="radio"]:checked ~ .gls-option-row-check {
    opacity: 1;
    transform: scale(1);
}

.gls-option-row-content {
    flex: 1;
}

.gls-option-row-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.gls-option-row-price {
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
}

.gls-option-row-check {
    width: 28px;
    height: 28px;
    background: #667eea;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    margin-left: 15px;
}

/* ===================================
   Prescription Form
   =================================== */

.gls-prescription-form {
    margin-bottom: 30px;
}

.gls-prescription-table-wrapper {
    overflow-x: auto;
    margin-bottom: 25px;
}

.gls-prescription-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.gls-prescription-table th,
.gls-prescription-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #dee2e6;
}

.gls-prescription-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.gls-prescription-table td {
    vertical-align: middle;
}

.gls-prescription-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.3s ease;
}

.gls-prescription-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.gls-prescription-pd {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.gls-prescription-pd label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.gls-optional {
    font-weight: normal;
    color: #6c757d;
    font-size: 14px;
}

.gls-prescription-input {
    width: 100%;
    max-width: 200px;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 8px;
}

.gls-prescription-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.gls-prescription-pd small {
    display: block;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
}

/* ===================================
   Info Boxes
   =================================== */

.gls-info-box,
.gls-warning-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.gls-info-box {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    color: #004085;
}

.gls-warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.gls-info-box svg,
.gls-warning-box svg {
    flex-shrink: 0;
}

.gls-info-box p,
.gls-warning-box p {
    margin: 0;
    line-height: 1.6;
}

.gls-warning-box p:first-of-type {
    margin-bottom: 8px;
}

/* ===================================
   Review Section
   =================================== */

.gls-review-summary {
    margin-bottom: 30px;
}

.gls-review-section {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.gls-review-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.gls-review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.gls-review-item:last-child {
    border-bottom: none;
}

.gls-review-label {
    color: #6c757d;
    font-size: 15px;
}

.gls-review-value {
    color: #2c3e50;
    font-weight: 500;
    font-size: 15px;
}

.gls-review-prescription-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.gls-review-prescription-table th,
.gls-review-prescription-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #dee2e6;
}

.gls-review-prescription-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
}

.gls-review-pd {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

.gls-price-breakdown {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
}

.gls-total-row {
    background: #e9ecef;
    padding: 15px 0 !important;
    font-size: 18px;
}

.gls-discount-row {
    color: #28a745;
}

.gls-discount-row .gls-review-value {
    color: #28a745;
    font-weight: 600;
}

/* Mobile Help Buttons */
@media (max-width: 768px) {
    .gls-help-stack {
        bottom: 20px;
        right: 20px;
    }
    
    .gls-whatsapp-button span,
    .gls-callback-button span {
        display: none;
    }
    
    .gls-whatsapp-button,
    .gls-callback-button {
        width: 56px;
        height: 56px;
        justify-content: center;
        border-radius: 50%;
        padding: 0;
        gap: 0;
    }
    
    .gls-callback-form {
        width: 220px;
    }
}


/* ===================================
   Mobile-Optimized Prescription Table
   =================================== */

.gls-prescription-table-wrapper {
    width: 100%;
    overflow: visible;
}

.gls-prescription-table {
    width: 100%;
    border-collapse: collapse;
}

.gls-prescription-table th,
.gls-prescription-table td {
    padding: 12px 8px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.gls-prescription-table select {
    width: 100%;
    max-width: 100%;
    padding: 8px 6px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .gls-prescription-table {
        font-size: 13px;
    }
    
    .gls-prescription-table th,
    .gls-prescription-table td {
        padding: 10px 4px;
        font-size: 12px;
    }
    
    .gls-prescription-table th {
        font-size: 13px;
        font-weight: 600;
    }
    
    .gls-prescription-table th:first-child,
    .gls-prescription-table td:first-child {
        width: 60px;
        min-width: 60px;
        padding-left: 6px;
        padding-right: 6px;
    }
    
    .gls-prescription-table select {
        padding: 8px 4px;
        font-size: 13px;
        min-width: 0;
        width: 100%;
    }
    
    /* Make table fit screen width */
    .gls-prescription-table-wrapper {
        margin: 0 -15px;
        padding: 0 15px;
        overflow-x: visible;
    }
    
    /* Adjust column widths for mobile */
    .gls-prescription-table th:nth-child(2),
    .gls-prescription-table td:nth-child(2) {
        width: 28%;
    }
    
    .gls-prescription-table th:nth-child(3),
    .gls-prescription-table td:nth-child(3) {
        width: 28%;
    }
    
    .gls-prescription-table th:nth-child(4),
    .gls-prescription-table td:nth-child(4) {
        width: 28%;
    }
}

@media (max-width: 576px) {
    .gls-prescription-table {
        font-size: 12px;
    }
    
    .gls-prescription-table th,
    .gls-prescription-table td {
        padding: 8px 3px;
        font-size: 11px;
    }
    
    .gls-prescription-table th {
        font-size: 12px;
        padding: 10px 3px;
    }
    
    .gls-prescription-table th:first-child,
    .gls-prescription-table td:first-child {
        width: 50px;
        min-width: 50px;
        font-size: 11px;
    }
    
    .gls-prescription-table select {
        padding: 6px 2px;
        font-size: 12px;
    }
    
    /* Ensure labels are readable */
    .gls-prescription-table td:first-child strong {
        font-size: 12px;
    }
    
    .gls-prescription-table td:first-child {
        font-size: 10px;
        line-height: 1.2;
    }
}

/* PD Field Mobile Optimization */
.gls-prescription-pd {
    margin-top: 20px;
}

.gls-prescription-pd label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
}

.gls-prescription-pd input {
    width: 100%;
    max-width: 200px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
}

@media (max-width: 576px) {
    .gls-prescription-pd input {
        max-width: 100%;
        width: 100%;
    }
}

/* Upload Section Mobile */
@media (max-width: 576px) {
    .gls-prescription-upload-section {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ===================================
   Prescription Upload Styles
   =================================== */

.gls-prescription-upload-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.gls-upload-toggle-wrapper {
    margin-bottom: 20px;
}

.gls-upload-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 12px 20px;
    border-radius: 6px;
    color: #495057;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gls-upload-toggle-btn:hover {
    background: #e9ecef;
    border-color: #cbd3da;
}

.gls-upload-toggle-btn svg {
    flex-shrink: 0;
}

.gls-upload-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.gls-upload-info {
    margin-bottom: 15px;
}

.gls-upload-info p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.gls-upload-area {
    position: relative;
}

.gls-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 200px;
    border: 2px dashed #cbd3da;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
    text-align: center;
}

.gls-upload-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.gls-upload-label svg {
    color: #adb5bd;
}

.gls-upload-label span {
    font-size: 15px;
    color: #495057;
    font-weight: 500;
}

.gls-upload-label small {
    font-size: 13px;
    color: #6c757d;
}

.gls-upload-preview {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.gls-upload-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 6px;
}

.gls-upload-preview .pdf-uploaded {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px;
}

.gls-upload-preview .pdf-uploaded svg {
    color: #dc3545;
}

.gls-upload-preview .pdf-uploaded p {
    margin: 0;
    font-size: 14px;
    color: #495057;
}

.gls-remove-upload {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gls-remove-upload:hover {
    background: rgba(0, 0, 0, 0.9);
}

.gls-remove-upload svg {
    color: #ffffff;
}

.gls-upload-status {
    margin-top: 10px;
    font-size: 13px;
    min-height: 18px;
}

.gls-upload-status.gls-upload-error {
    color: #dc3545;
}

.gls-upload-status.gls-upload-success {
    color: #1e7e34;
}

.gls-upload-note {
    margin-top: 15px;
    font-size: 13px;
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px 15px;
    border-radius: 6px;
}

.gls-skip-note {
    margin: 15px 0 0 0;
    font-size: 13px;
    color: #6c757d;
    text-align: center;
}

.gls-review-pending {
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.gls-prescription-pd label .gls-required {
    color: #dc3545;
    font-weight: 700;
    margin-left: 3px;
}

@media (max-width: 576px) {
    .gls-upload-label {
        min-height: 160px;
        padding: 15px;
    }
    
    .gls-upload-label svg {
        width: 36px;
        height: 36px;
    }
}

/* ===================================
   Enhanced Mobile Responsiveness
   =================================== */

@media (max-width: 576px) {
    .gls-wizard-header {
        padding: 20px 15px;
    }
    
    .gls-selected-frame {
        flex-direction: column;
        text-align: center;
    }
    
    .gls-frame-image {
        width: 80px;
        height: 80px;
    }
    
    .gls-frame-info h2 {
        font-size: 18px;
    }
    
    .gls-progress-steps {
        padding: 20px 10px;
        gap: 8px;
    }
    
    .gls-step-label {
        font-size: 11px;
    }
    
    .gls-step-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

/* ===================================
   MOBILE-OPTIMIZED PRESCRIPTION FIELDS
   Card-based layout, no horizontal scroll
   =================================== */

.gls-prescription-fields {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.gls-eye-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.gls-eye-label {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.gls-prescription-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gls-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gls-field-group label {
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gls-prescription-select {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    color: #495057;
    background-color: #ffffff;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23495057" d="M6 9L1 4h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px; /* Touch-friendly */
}

.gls-prescription-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.gls-prescription-select:disabled {
    background-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ADD Section */
.gls-add-section {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.gls-section-label {
    font-size: 15px;
    font-weight: 600;
    color: #856404;
    margin: 0 0 15px 0;
}

.gls-add-row {
    grid-template-columns: repeat(2, 1fr);
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .gls-prescription-fields {
        padding: 15px;
    }
    
    .gls-eye-section {
        padding: 15px;
    }
    
    .gls-eye-label {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .gls-prescription-row {
        gap: 10px;
    }
    
    .gls-field-group label {
        font-size: 12px;
    }
    
    .gls-prescription-select {
        padding: 10px 8px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .gls-add-section {
        padding: 15px;
    }
    
    /* Three cramped columns (SPH/CYL/AXIS) don't fit comfortably on
       most phones — stack them on anything phone-sized, not just
       screens under 360px. */
    .gls-prescription-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .gls-add-row {
        grid-template-columns: 1fr;
    }
}

/* Remove old table styles to avoid conflicts */
.gls-prescription-table-wrapper {
    display: none !important;
}

