/* Form Container */
.hk-appointment-form {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--hk-primary, #05293c);
    padding: 2rem 1rem 100px 1rem; /* Extra bottom padding for sticky button */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hk-appointment-form h3 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* OTP Section */
#hk-apt-otp-section {
    background: var(--hk-icon, #80a5b4);
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.5s ease;
}

#hk-apt-otp-section h3 {
    color: #05293c !important;
}

#hk-apt-otp-section .form-group {
    text-align: center;
}

#hk-apt-otp-section .form-group label {
    color: #05293c !important;
    text-align: center;
    display: block;
}

#hk-apt-otp-section input {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Main Appointment Form */
#hk-appointment-form-main {
    background: var(--hk-section-bg, #f8f6f0);
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.5s ease;
    margin-bottom: 80px; /* Space for sticky button */
}

#hk-appointment-form-main h3 {
    color: #05293c !important;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #05293c !important;
}

.form-group input[type="text"],
.form-group input[type="datetime-local"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--hk-icon, #80a5b4);
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #ffffff;
    color: #05293c !important;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="datetime-local"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--hk-primary, #05293c);
    box-shadow: 0 0 0 3px rgba(5, 41, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.hk-btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--hk-button, #eaee25);
    color: #05293c !important;
    transition: all 0.3s ease;
    width: 100%;
}

.hk-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 238, 37, 0.3);
    color: #05293c !important;
}

.hk-btn-primary {
    background-color: var(--hk-button, #eaee25);
    color: #05293c !important;
}

.hk-btn-primary:hover {
    background-color: #d4d822;
    color: #05293c !important;
}

.hk-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Sticky Submit Button */
#hk-appointment-form-main button[type="submit"] {
    position: fixed;
    bottom: 80px; /* Above bottom nav */
    left: 50%;
    transform: translateX(-50%);
    max-width: 560px;
    width: calc(100% - 2rem);
    z-index: 99;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

/* Success Message */
#hk-apt-success-message {
    background: var(--hk-section-bg, #f8f6f0);
    padding: 3rem 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeInScale 0.5s ease;
}

#hk-apt-success-message h3 {
    color: #05293c !important;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

#hk-apt-success-message p {
    color: #05293c !important;
    font-size: 1.1rem;
}

/* Modal Popup */
.hk-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.hk-modal-content {
    background-color: var(--hk-section-bg, #f8f6f0);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.4s ease;
}

.hk-modal-close,
.hk-apt-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--hk-icon, #80a5b4);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.hk-modal-close:hover,
.hk-apt-modal-close:hover {
    color: var(--hk-primary, #05293c);
}

.hk-modal-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #05293c !important;
}

.hk-modal-content p {
    margin-bottom: 1.5rem;
    color: #05293c !important;
}

.hk-modal-content input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--hk-primary, #05293c);
}

.hk-modal-content .hk-btn {
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .hk-appointment-form {
        padding: 1rem 0.5rem 100px 0.5rem;
    }

    #hk-appointment-form-main,
    #hk-apt-otp-section {
        padding: 1.5rem;
    }

    .hk-modal-content {
        margin: 30% auto;
        width: 85%;
        padding: 1.5rem;
    }

    #hk-appointment-form-main button[type="submit"] {
        width: calc(100% - 1rem);
    }
}
