/**
 * Public CSS for Optinano Lens Cards
 */

/* Container */
.optinano-lens-cards-container {
    max-width: 1000px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Tabs */
.optinano-lens-cards-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.optinano-tab-button {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-bottom: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.optinano-tab-button:hover {
    background-color: #f0f0f0;
}

.optinano-tab-button.active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    color: #0073aa;
}

/* Tab Content */
.optinano-tab-content {
    display: none;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

.optinano-tab-content.active {
    display: block;
}

/* Forms */
.optinano-invoice-verification {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Card Type Selection */

/* Card Details Table Card Styling */
.optinano-card-details {
    max-width: 700px;
    margin: 30px auto;
    padding: 0;
}
.optinano-card-table-card {
    background: #f6fcf7;
    border: 1px solid #b7e1cb;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 30px 25px 25px 25px;
    margin-bottom: 30px;
}
.optinano-card-table-card h3 {
    text-align: center;
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 1.5em;
}
.optinano-card-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background: #fff;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(44, 62, 80, 0.04);
}
.optinano-card-table th {
    background: #eafaf1;
    color: #1b5e20;
    font-weight: 700;
    padding: 12px 10px;
    font-size: 1.08em;
    border-bottom: 2px solid #b7e1cb;
    text-align: left;
}
.optinano-card-table td {
    padding: 10px 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1em;
    color: #333;
}
.optinano-card-table tr:last-child td {
    border-bottom: none;
}
.optinano-card-table tr th[colspan="2"] {
    text-align: center;
    background: #d7f7e3;
    font-size: 1.12em;
    letter-spacing: 0.5px;
}
@media (max-width: 600px) {
    .optinano-card-details, .optinano-card-table-card {
        padding: 10px 4px;
    }
    .optinano-card-table th, .optinano-card-table td {
        padding: 7px 4px;
        font-size: 0.98em;
    }
}

.optinano-card-type-selection {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.optinano-card-type-selection h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.card-type-options {
    margin-bottom: 20px;
}

.card-type-option {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.card-type-option:hover {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.card-type-option input[type="radio"] {
    margin-right: 10px;
}

.card-type-option label {
    font-weight: 600;
    cursor: pointer;
}

.physical-card-info {
    color: #0073aa;
    text-decoration: underline;
    margin-left: 5px;
}

.physical-card-info:hover {
    color: #005177;
}

.optinano-lens-form {
    margin-top: 20px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.form-section h3 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    color: #333;
}

.eye-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #eee;
}

.eye-section h4 {
    margin-top: 0;
    color: #0073aa;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-group {
    flex: 1;
    min-width: 200px;
    padding: 0 10px;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    height: 80px;
}

.submit-group {
    text-align: center;
    margin-top: 20px;
}

/* Buttons */
.optinano-button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.optinano-button:hover {
    background-color: #005177;
}

/* Messages */
.optinano-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

/* Verification Badge Styling */
.verification-status-badge {
    text-align: center;
    margin: 0 auto 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.verification-status-badge img {
    display: block;
    margin: 0 auto 15px auto;
    max-width: 150px;
}

.verified-card-image {
    max-width: 90%;
    height: auto;
    margin: 20px auto;
    display: block;
}

.contact-lens-verification-details h3,
.ophthalmic-lens-verification-details h3 {
    text-align: center;
    color: #2e7d32;
    margin: 0 0 20px 0;
    font-size: 1.5em;
}

.contact-lens-verification-details,
.ophthalmic-lens-verification-details {
    max-width: 700px;
    margin: 20px auto;
    background-color: #f6fcf7;
    border: 1px solid #b7e1cb;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.details-table th {
    background: #eafaf1;
    color: #1b5e20;
    font-weight: 700;
    padding: 12px 15px;
    text-align: center;
}

.details-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.details-table td:first-child {
    font-weight: 600;
    width: 40%;
    background-color: #f8fdf9;
}

.details-table td:last-child {
    width: 60%;
}

.details-table tr:last-child td {
    border-bottom: none;
}

.optinano-message.success {
    display: block;
    background-color: #ecf7ed;
    border: 1px solid #46b450;
    color: #2e7d32;
}

.optinano-message.error {
    display: block;
    background-color: #f7e6e6;
    border: 1px solid #dc3232;
    color: #b71c1c;
}

/* Congratulatory Message Styling */
.congratulatory-message {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
    border: 2px solid #4caf50;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.congratulatory-message p {
    color: #2e7d32;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .optinano-lens-cards-tabs {
        flex-direction: column;
    }
    
    .optinano-tab-button {
        margin-right: 0;
        margin-bottom: 5px;
        border-radius: 5px;
    }
    
    .optinano-tab-button.active {
        border-bottom: 1px solid #ddd;
    }
    
    .form-group {
        min-width: 100%;
    }
}
