.contact-modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(15, 42, 45, 0.45);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 1.5rem;
}

.contact-modal.active {
    display: grid;
}

.contact-card {
    background: #ffffff;
    padding: clamp(1.2rem, 3vw, 1.6rem);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(95, 158, 160, 0.25);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    display: grid;
    gap: 0.9rem;
}

.contact-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(95, 158, 160, 0.12);
    border: none;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #4a7c7e;
    font-size: 1.1rem;
}

.contact-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1c3a3f;
}

.contact-description {
    color: #4b5563;
    line-height: 1.45;
    font-size: 0.9rem;
}

.contact-form {
    display: grid;
    gap: 0.6rem;
}

.contact-form label {
    font-weight: 600;
    color: #1c3a3f;
    font-size: 0.85rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    border: 1px solid rgba(95, 158, 160, 0.25);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    font-size: 0.85rem;
    transition: box-shadow 0.2s ease, border 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #5f9ea0;
    box-shadow: 0 0 0 3px rgba(95, 158, 160, 0.15);
}

.contact-form textarea {
    min-height: 90px;
    resize: vertical;
}

.contact-form select {
    background-color: #ffffff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #4a7c7e 50%),
                      linear-gradient(135deg, #4a7c7e 50%, transparent 50%);
    background-position: right 1rem top 50%, right 0.75rem top 50%;
    background-size: 10px 10px, 10px 10px;
    background-repeat: no-repeat;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.contact-actions .secondary-btn {
    border: 1px solid rgba(95, 158, 160, 0.25);
    background: rgba(95, 158, 160, 0.05);
    color: #4a7c7e;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 10px;
}

.contact-actions .secondary-btn:hover {
    transform: none;
    box-shadow: none;
}

.contact-actions .primary-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 10px;
}

.contact-modal .primary-btn {
    background: linear-gradient(135deg, #5f9ea0, #4a7c7e);
    border: none;
    color: #fff;
}

.contact-modal .primary-btn:hover {
    filter: brightness(0.95);
}

.contact-modal .secondary-btn {
    transition: background 0.2s ease, color 0.2s ease;
}
