/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--color-white);
    max-width: min(1200px, 90%);
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 2.5vw, 2.5rem);
    border-radius: clamp(0.5rem, 0.75vw, 0.75rem);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 clamp(0.625rem, 0.625vw, 0.625rem) clamp(2.5rem, 2.5vw, 2.5rem) rgba(0, 0, 0, 0.2);
    border-top: clamp(1px, 0.11vw, 1.7px) solid var(--color-beige);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: clamp(1rem, 1.25vw, 1.25rem);
    right: clamp(1rem, 1.25vw, 1.25rem);
    background: none;
    border: none;
    font-size: clamp(1.5rem, 2vw, 2rem);
    cursor: pointer;
    color: var(--color-black);
    width: clamp(2rem, 2.5vw, 2.5rem);
    height: clamp(2rem, 2.5vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

.modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.modal-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(2rem, 3.438vw, 3.438rem);
    font-weight: 500;
    line-height: 1.223;
    margin: 0 0 clamp(2rem, 4vw, 4rem) 0;
    text-align: center;
}

.modal-title-black {
    color: #000000;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500;
}

.modal-title-beige {
    color: #D9CAAB;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500;
}

.modal-contact-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.modal-contact-form {
    width: 100%;
    max-width: min(600px, 90%);
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 1.25vw, 1.25rem);
    box-sizing: border-box;
}

.modal-form-row {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 1.875vw, 1.875rem);
}

.modal-form-group {
    display: flex;
    flex-direction: column;
}

.modal-form-input {
    padding: clamp(0.75rem, 0.938vw, 0.938rem) 0;
    border: none;
    border-bottom: clamp(1px, 0.11vw, 1.7px) solid var(--color-beige);
    border-radius: 0;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    font-weight: 400;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
    background-color: transparent;
    color: #B8A88A;
}

.modal-form-input:focus {
    outline: none;
    border-bottom-color: var(--color-black);
    color: #B8A88A;
}

.modal-form-input::placeholder {
    color: rgba(184, 168, 138, 0.6);
    font-weight: 400;
}

.modal-contact-btn {
    background-color: #D9CAAB;
    color: var(--color-black);
    border: none;
    padding: clamp(0.75rem, 1vw, 1rem) clamp(2rem, 3.75vw, 3.75rem);
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    font-weight: 400;
    font-family: var(--font-primary);
    cursor: pointer;
    border-radius: clamp(0.5rem, 0.75vw, 0.75rem);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
}

.modal-contact-btn:hover {
    background-color: #C9BA9B;
    transform: translateY(clamp(-0.125rem, -0.125vw, -0.125rem));
    box-shadow: 0 clamp(0.25rem, 0.25vw, 0.25rem) clamp(0.75rem, 0.75vw, 0.75rem) rgba(217, 202, 171, 0.3);
}

.modal-contact-btn:active {
    transform: translateY(0);
    box-shadow: 0 clamp(0.125rem, 0.125vw, 0.125rem) clamp(0.375rem, 0.375vw, 0.375rem) rgba(217, 202, 171, 0.2);
}

.modal-contact-privacy {
    font-size: clamp(0.75rem, 0.875vw, 0.875rem);
    color: var(--color-black);
    font-family: var(--font-primary);
    line-height: 1.5;
    margin: 0;
}

.modal-privacy-link {
    color: var(--color-beige);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.modal-privacy-link:hover {
    color: var(--color-black);
}

