/**
 * Auth Modals CSS
 */

/* Modal styling */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background-color: transparent;
}

.modal-header {
    padding: 15px 20px 0;
    border-bottom: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
}

.modal-header .btn-close {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 0.5rem;
    margin: 0;
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
    background-color: white;
}

.modal-body {
    padding: 0;
}

/* Override appointment form styles for modals */
.modal .appointment-form {
    border-radius: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    height: auto;
    min-height: auto;
    padding: 40px;
    background-color: white;
}

.modal .section-title h3 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.modal .section-title h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.modal .small-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.modal .policy-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.modal .policy-link:hover {
    color: var(--accent-color);
}

/* Form elements */
.modal .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.25em;
}

.modal .form-check-label {
    padding-left: 5px;
}

.modal .password-toggle {
    cursor: pointer;
    background: #e551513b;
    border: none;
}

.modal .input-group .form-control {
    border-right: none;
}

/* Alert styling */
.modal .alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 10px;
}

/* Responsive adjustments */
/* Modal animations */
.modal.fade .modal-dialog {
    transform: translateY(-20px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

/* Button animation */
.modal .btn-default {
    position: relative;
    overflow: hidden;
}

.modal .btn-default::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modal .btn-default:hover::after {
    width: 300px;
    height: 300px;
}

/* Social login buttons */
.social-login-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    /* margin-bottom: 20px;*/
    justify-content: center;
    align-items: center;
}

.btn-social {
    width: 215px;
    height: 50px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-social:hover {
    background: #f8f9fa;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-social i {
    font-size: 24px;
}

.btn-google {
    border-color: #db4437;
    color: #db4437;
}

.btn-google:hover {
    background: #db4437;
    color: white;
}

.btn-apple {
    border-color: #000;
    color: #000;
}

.btn-apple:hover {
    background: #000;
    color: white;
}

@media (max-width: 767px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal .appointment-form {
        padding: 30px 20px;
    }

    .modal .section-title h2 {
        font-size: 24px;
    }
}

/* ===================================
   Login Options Modal Styles
   =================================== */

.login-options-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 250, 0.98) 100%);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(229, 0, 80, 0.15), 0 0 0 1px rgba(229, 0, 80, 0.05);
    overflow: hidden;
}

.login-options-container {
    padding: 40px 40px 35px;
    text-align: center;
}

.login-options-logo {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.login-options-logo .logo-circle {
    width: 72px;
    height: 72px;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    animation: logoFloat 3s ease-in-out infinite;
    overflow: hidden;
}

.login-options-logo .logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.login-options-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c0d18;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.login-options-description {
    font-size: 15px;
    color: #6b5a60;
    line-height: 1.6;
    margin: 0 0 28px;
    /* max-width: 320px; */
    margin-left: auto;
    margin-right: auto;
}

.login-options-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.login-option-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    border: 2px solid rgba(213, 190, 198, 0.6);
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.login-option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(229, 0, 80, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-option-btn:hover::before {
    opacity: 1;
}

.login-option-btn:hover {
    border-color: rgba(229, 0, 80, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 0, 80, 0.12);
}

.login-option-btn:active {
    transform: translateY(0);
}

.login-option-btn .option-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.login-option-btn .option-text {
    font-size: 15px;
    font-weight: 600;
    color: #2c0d18;
    position: relative;
    z-index: 1;
}

/* Google button specific */
.google-option-btn:hover {
    border-color: rgba(66, 133, 244, 0.5);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.12);
}

.google-option-btn:hover::before {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Apple button specific */
.apple-option-btn .option-icon {
    color: #000;
}

.apple-option-btn:hover {
    border-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.apple-option-btn:hover::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Email button specific - primary action styling */
.email-option-btn {
    background: linear-gradient(135deg, rgba(255, 244, 248, 1) 0%, rgba(255, 255, 255, 1) 100%);
    border-color: rgba(229, 0, 80, 0.3);
}

.email-option-btn .option-icon {
    color: rgba(229, 0, 80, 1);
}

.email-option-btn:hover {
    background: linear-gradient(135deg, rgba(229, 0, 80, 1) 0%, rgba(180, 0, 60, 1) 100%);
    border-color: rgba(229, 0, 80, 1);
}

.email-option-btn:hover .option-icon,
.email-option-btn:hover .option-text {
    color: white;
}

.login-options-divider {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.login-options-divider::before,
.login-options-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(213, 190, 198, 0.8) 50%, transparent 100%);
}

.login-options-divider span {
    padding: 0 16px;
    font-size: 13px;
    color: #9a8890;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-options-signup {
    font-size: 14px;
    color: #6b5a60;
    margin: 0;
}

.login-options-signup a {
    color: rgba(229, 0, 80, 1);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.login-options-signup a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(229, 0, 80, 1);
    transition: width 0.3s ease;
}

.login-options-signup a:hover::after {
    width: 100%;
}

.login-options-signup a:hover {
    color: rgba(180, 0, 60, 1);
}

/* Responsive adjustments for Login Options Modal */
@media (max-width: 575px) {
    .login-options-container {
        padding: 30px 24px 28px;
    }

    .login-options-logo .logo-circle {
        width: 64px;
        height: 64px;
    }

    .login-options-logo .logo-circle img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .login-options-title {
        font-size: 24px;
    }

    .login-options-description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .login-option-btn {
        padding: 12px 16px;
    }

    .login-option-btn .option-icon {
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }

    .login-option-btn .option-text {
        font-size: 14px;
    }
    .btn-social{
        width: 150px;
    }
}

/* Phone Input Group Styling */
.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.phone-input-group:focus-within {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.country-code-select {
    flex-shrink: 0;
    width: 95px;
    border: none;
    border-right: 1px solid #ddd;
    border-radius: 0;
    padding: 8px 12px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
}

.country-code-select:focus {
    outline: none;
    background-color: #fff;
}

.phone-divider {
    flex-shrink: 0;
    padding: 0 8px;
    color: #999;
    font-size: 16px;
    user-select: none;
}

.phone-input {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 8px 12px;
    font-size: 14px;
    min-width: 0;
}

.phone-input:focus {
    outline: none;
    box-shadow: none;
}

/* For signup page form (not modal) */
.appointment-form .phone-input-group {
    border: 1px solid #ddd;
}

.appointment-form .phone-input-group:focus-within {
    border-color: var(--primary-color, #007bff);
}

.appointment-form .country-code-select {
    border-right: 1px solid #ddd;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .country-code-select {
        width: 100px;
        font-size: 13px;
        padding: 8px 28px 8px 10px;
    }
    
    .phone-divider {
        padding: 0 6px;
        font-size: 14px;
    }
    
    .phone-input {
        font-size: 13px;
        padding: 8px 10px;
    }
}