.hidden {
    display: none !important;
}

.consultation-booking {
    text-align: center;
    margin: 2rem 0;
}

.consultation-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.consultation-btn:hover {
    background: #1da851;
}

.consultation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.consultation-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.consultation-form-container {
    position: relative;
    background-color: white;
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close-consultation-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.close-consultation-btn:hover {
    color: #333;
}

.consultation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.consultation-form .form-group {
    margin-bottom: 1rem;
}

.consultation-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.consultation-form input,
.consultation-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.consultation-form input:focus,
.consultation-form select:focus {
    outline: none;
    border-color: #34abeb;
}

.consultation-form .submit-btn {
    width: 100%;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

.consultation-form .submit-btn:hover {
    background-color: #0056b3;
}

.payment-success {
    text-align: center;
    padding: 1rem;
}

.payment-success .checkmark {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
}

.payment-success h4 {
    color: #25d366;
    margin-bottom: 0.5rem;
}

.consultation-form-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.booking-step {
    margin-top: 20px;
}

.booking-step.hidden {
    display: none;
}

.booking-step h4 {
    color: #007bff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-step h4::before {
    content: attr(data-step);
    background-color: #007bff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group small {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

#paypal-button-container {
    margin-top: 20px;
}

.payment-info {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.label-input-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.label-input-row label {
    font-weight: 600;
    color: #333;
}

.label-input-row input,
.label-input-row select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Make full rows default to stacked, but allow a special name-row to be horizontal */
.form-group.full {
    flex-direction: column;
    width: 100%;
}

/* Make the name row horizontal when present */
.form-group.full.name-row {
    flex-direction: row;
    align-items: center;
}

.form-group.full.name-row label {
    width: 35%;
    margin-bottom: 0;
}

.form-group.full.name-row input,
.form-group.full.name-row select {
    width: 65%;
}

/* Manual payment instructions */
.manual-payment-instructions {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.manual-payment-instructions h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.manual-payment-instructions .payment-methods {
    text-align: left;
    margin: 1.5rem 0;
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.manual-payment-instructions .payment-methods ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.manual-payment-instructions .payment-methods li {
    margin-bottom: 0.5rem;
    color: #555;
}

.manual-payment-instructions .payment-methods .paypal-link {
    color: #0070ba;
    text-decoration: none;
    font-weight: 500;
}

.manual-payment-instructions .payment-methods .paypal-link:hover {
    text-decoration: underline;
}

.payment-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.paypal-pay-btn {
    background: #0070ba;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    transition: background-color 0.3s;
    display: inline-block;
    font-weight: 500;
}

.paypal-pay-btn:hover {
    background: #005ea6;
    color: white;
    text-decoration: none;
}

.manual-payment-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.manual-payment-btn:hover {
    background-color: #218838;
}

.loading-payment {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.loading-payment::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Payment success animation */
.payment-success {
    text-align: center;
    padding: 2rem 0;
}

.checkmark {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #25d366;
    stroke-miterlimit: 10;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #25d366;
    fill: none;
    animation: stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #fff;
    }
}

@media (max-width: 600px) {
    .label-input-row {
        gap: 0.5rem;
        flex-direction: row;
    }

    .label-input-row label {
        width: 40%;
        margin-bottom: 0;
        font-size: 0.95rem;
    }

    .label-input-row input,
    .label-input-row select {
        width: 60%;
    }

    /* Ensure elements meant to be full width stay stacked */
    .consultation-form .form-group.full,
    .booking-step .form-group.full {
        flex-direction: column;
        width: 100%;
    }

    /* Exception: keep name row on one horizontal line on small devices unless explicitly stacked */
    .consultation-form .form-group.name-row {
        flex-direction: column;
        align-items: stretch;
    }

    .consultation-form .form-group.name-row label {
        width: 100%;
        margin-bottom: 0.35rem;
    }

    .consultation-form .form-group.name-row input {
        width: 100%;
    }
}
