
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --primary: #088178;
    --primary-hover: #07a06d;
    --error: #dc2626;
    --border: #bdd8d3;
    --bg-hover: #d0f3ec;
    --text-main: #111827;
    --text-secondary: #6b7280;
    --success: #10b981;
    --background: #f4f4f4;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 20px;
    background: var(--background);
    color: var(--text-main);
}

/* ... (all other existing CSS rules unchanged) ... */
.container {
    /* max-width: 720px; */
    width: 100%;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 30px;
    /* height: 90vh; */
    /* align-items: center; */
}


.eyeframe-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 20px;
    /* border: 1px solid var(--border); */
    /* border-radius: 12px; */
    /* background: #f9fafb; */
    width: 100%;
}

.eyeframe-details {
    flex: 1;
    text-align: center;
}

.eyeframe-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.eyeframe-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.eyeframe-price {
    font-size: 1.2rem;
    color: var(--primary);
}

.pre-section {
    width: 100%;
    height: auto;
    /* overflow-y: scroll; */
    padding: 0 10px;
  
}
@media screen and (min-height:1101px) and (max-height:1367px) {
    .container {
        height: 65vh !important;
    }
    
}

@media screen and (max-width: 1024px) {
    .container {
        /* flex-direction: column; */
        flex-wrap: wrap;
        height: 100%;

    }

    .eyeframe-details {
        text-align: center;
    }

}

.progress-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}

.progress-bar {
    position: absolute;
    top: 14px;
    left: 0;
    height: 4px;
    background: #e5e7eb;
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

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

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.step-number.active {
    background: var(--primary);
    color: white;
}

.step-number.completed {
    background: var(--primary);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.step-label.active {
    color: var(--text-main);
    font-weight: 600;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.cardT-container {
    display: grid;
    grid-template-rows: 1fr;
    gap: 16px;
    margin-bottom: 1.5rem;
    /* width: 100%; */
}

@media screen and (max-width: 500px) {
    .step-label {
        display: none;
    }

    .container {
        padding: 30px 10px;
        height: 100%;
    }
}

@media screen and (max-width: 375px) {

    .cardT {
        border: 2px solid var(--border);
        padding: 20px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        position: relative;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        text-align: left;
        justify-content: center;
        gap: 1rem;

    }
}

@media (max-width: 600px) {
    .cardT-container {
        grid-template-columns: 1fr;
    }

    .eyeframe-section {
        flex-direction: column;
        align-items: center;
    }
}

.cardT {
    border: 2px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    /* flex-wrap: wrap; */
    text-align: left;
    gap: 1rem;
    transition: all 0.2s ease-in-out;
}

.cardT:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
    transform: scale(1.02);
   
}

.cardT.selected {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.cardT.selected::after {
    content: "✓";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.cardT-image {
    width: 80px;
    height: 80px;
    margin-bottom: 0.5rem;
    /* object-fit: cover; */
    border-radius: 8px;
}

.cardT-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cardT-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-main);
}

.prescription-type {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.prescription-type-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
}

.prescription-type-btn:hover {
    border-color: var(--primary);
}

.prescription-type-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.prescription-section {
    display: none;
}

.prescription-section.active {
    display: block;
}

.prescription-eye {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--primary-hover);
    border-radius: 12px;
    background: #f9fafb;
}

.prescription-eye-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eye-label {
    color: var(--text-main);
    font-size: 1.1rem;
}

.prescription-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .prescription-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.prescription-field {
    position: relative;
    /* For dropdown positioning */
}

.prescription-field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--primary-hover);
    font-family: inherit;
    font-size: 1rem;
}

.prescription-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.prescription-field input:invalid:not(:placeholder-shown) {
    border-color: var(--error);
}

/* Custom combobox dropdown */
.combobox {
    position: relative;
}

.combobox-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    margin-top: 4px;
}

.combobox-dropdown.active {
    display: block;
}

.combobox-dropdown ul {
    padding: 0;
    margin: 0;
}

.combobox-dropdown li {
    padding: 8px 0;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1rem;
    list-style: none;
    text-align: center;
    transition: all 0.3s ease-in-out;
}
.pd-width{
    width: 50%;
}

.combobox-dropdown li:hover {
    background: var(--bg-hover);
    font-size: 1.2rem;
   
    
}

/* Scrollbar styling */
.combobox-dropdown::-webkit-scrollbar {
    width: 6px;
}

.combobox-dropdown::-webkit-scrollbar-track {
    background: var(--background);
}

.combobox-dropdown::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.hidden {
    display: none;
}

.pd-section {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid var(--primary-hover);
    border-radius: 12px;
    background: #f9fafb;
}

.dual-pd-fields {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.dual-pd-fields.active {
    display: grid;
}

.upload-area {
    border: 2px dashed var(--primary-hover);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.upload-text h3 {
    margin: 0.5rem 0;
    color: var(--text-main);
}

.upload-text p {
    color: var(--text-secondary);
    margin: 0;
}

.image-preview {
    max-width: 100%;
    max-height: 300px;
    margin-top: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: none;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.checkbox-container input {
    margin-right: 0.75rem;
}

.error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    display: none;
}

.success-message {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    display: none;
}

.magnification-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .magnification-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.magnification-option {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.magnification-option:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.magnification-option.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.button {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.button:hover {
    background: var(--primary-hover);
}

.button-outline {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);

}

.button-outline:hover {
    background:var(--primary);
    color: #fff;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.summary-table th,
.summary-table td {
    padding: 12px;
    border: 1px solid var(--primary-hover);
    text-align: left;
    /* background: var(--bg-hover); */
}

.summary-table th {
    background: var(--bg-hover);
    font-weight: 600;
    width: 30%;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 4px 0;
}

.hidden {
    display: none;
}

.badge {
    background: #d1d5db;
    color: #111827;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 9999px;
    margin-left: 8px;
}

.badge-premium {
    background: #f59e0b;
    color: white;
}

.badge-ultra {
    background: #10b981;
    color: white;
}

.audio-container {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-button {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
}

.audio-button:hover {
    background: var(--primary-hover);
}

.success-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-hover);
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 1000;
    display: none;
    border: 2px solid var(--primary);
}

.success-popup.show {
    display: block;
    animation: fadeInOut 3s ease-in-out;
}

.success-popup p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    10% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    90% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
}

.frame-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--primary-hover);
    border-radius: 12px;
    background: var(--bg-hover);
}

.frame-preview img {
    width: 100px;
    height: auto;
    border-radius: 8px;
}

.frame-preview-details {
    flex: 1;
}
