/* =============================================================================
   OnDigital Forms — Modal Popup (Light Theme)
   ============================================================================= */

.odf-hp { display: none !important; }

/* Overlay */
.odf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.odf-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.odf-modal {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 44px;
    position: relative;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Poppins', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 transparent;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.odf-overlay.is-open .odf-modal {
    transform: translateY(0) scale(1);
}

/* Head */
.odf-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
}

.odf-modal-head h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111111;
    margin: 0;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
}

.odf-close {
    background: transparent;
    border: 1px solid #ddd;
    color: #999;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s, color 0.2s;
    padding: 0;
}

.odf-close:hover {
    border-color: #999;
    color: #333;
}

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

/* Fields */
.odf-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.odf-row .odf-field {
    margin-bottom: 0;
}

.odf-field label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
    letter-spacing: 0.01em;
    font-family: 'Poppins', sans-serif;
}

.odf-field input[type="text"],
.odf-field input[type="email"],
.odf-field input[type="tel"] {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #111;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.odf-field input:focus {
    background: #fff;
    border-color: #3fd467;
    box-shadow: 0 0 0 3px rgba(63, 212, 103, 0.12);
}

.odf-field input::placeholder {
    color: #bbb;
}

/* Group */
.odf-group {
    margin-bottom: 24px;
}

.odf-group-label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin: 0 0 12px;
    font-family: 'Poppins', sans-serif;
}

/* Choice grid */
.odf-choice-grid {
    display: grid;
    gap: 12px;
}

.odf-choice-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Choice button */
.odf-choice-btn {
    cursor: pointer;
    display: block;
    position: relative;
}

.odf-choice-btn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.odf-choice-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fafafa;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    text-align: center;
    min-height: 72px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    font-family: 'Poppins', sans-serif;
    user-select: none;
}

.odf-choice-inner i {
    font-size: 18px;
    color: #bbb;
    transition: color 0.2s;
}

.odf-choice-btn:hover .odf-choice-inner {
    border-color: #3fd467;
    color: #111;
    background: #fff;
}

.odf-choice-btn:hover .odf-choice-inner i {
    color: #3fd467;
}

.odf-choice-btn input:checked ~ .odf-choice-inner {
    border-color: #3fd467;
    background: rgba(63, 212, 103, 0.06);
    color: #111;
}

.odf-choice-btn input:checked ~ .odf-choice-inner i {
    color: #3fd467;
}

/* Submit button */
.odf-submit {
    width: 100%;
    background: #3fd467;
    color: #0d0d0d;
    border: none;
    border-radius: 12px;
    padding: 17px 24px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    letter-spacing: 0.01em;
    transition: background 0.2s, transform 0.15s;
}

.odf-submit:hover {
    background: #52e87b;
}

.odf-submit:active {
    transform: scale(0.98);
}

.odf-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Error */
.odf-error-msg {
    margin-top: 12px;
    color: #e53935;
    font-size: 13px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

/* Success */
.odf-success-wrap {
    text-align: center;
    padding: 48px 20px;
}

.odf-success-icon {
    font-size: 60px;
    color: #3fd467;
    margin-bottom: 18px;
    line-height: 1;
}

.odf-success-text {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Mobile */
@media (max-width: 600px) {
    .odf-modal {
        padding: 28px 20px;
        border-radius: 14px;
    }

    .odf-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .odf-choice-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .odf-modal-head h3 {
        font-size: 17px;
    }

    .odf-submit {
        font-size: 14px;
        padding: 15px 20px;
    }
}
