/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 8, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #1A1510;
    width: 100%;
    max-width: 600px;
    position: relative;
    border: 1px solid rgba(216, 179, 93, 0.2);
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-container::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    z-index: 3;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--cream);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 60px 50px;
}

.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 42px);
    color: var(--cream);
    margin-bottom: 12px;
    line-height: 1.1;
}

.modal-subtitle {
    font-size: 13px;
    color: rgba(234, 217, 168, 0.5);
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(216, 179, 93, 0.1);
    padding: 14px 18px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.06);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D8B35D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}

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

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--gold);
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--orange);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #4A3F30;
    cursor: not-allowed;
    transform: none;
}

/* Success State */
.success-message {
    text-align: center;
    padding: 40px 0;
    display: none;
}

.success-message svg {
    margin-bottom: 24px;
    color: var(--gold);
}

.success-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    color: var(--cream);
    margin-bottom: 16px;
}

.success-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.modal-body.submitted .consultation-form {
    display: none;
}

.modal-body.submitted .success-message {
    display: block;
    animation: fadeIn 0.8s ease forwards;
}

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

@media (max-width: 640px) {
    .modal-body { padding: 40px 24px; }
    .modal-title { font-size: 28px; }
}
