/* Page Structure */
.contact-header {
    height: 50vh;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    margin-top: var(--header-height);
}

.contact-header img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-overlay-bg {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

body.dark .contact-overlay-bg {
    background-color: rgba(17, 24, 39, 0.8);
}

.contact-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-light) 0%, transparent 100%);
}

body.dark .contact-overlay-gradient {
    background: linear-gradient(to top, var(--bg-dark) 0%, transparent 100%);
}

.contact-header-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 1rem;
}

.badge-tag {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.875rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.375rem 1.25rem;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    border: 1px solid #f3f4f6;
    margin-bottom: 1rem;
}

body.dark .badge-tag {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: #1f2937;
}

.contact-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    /* 4xl */
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

body.dark .contact-title {
    color: white;
}

@media(min-width: 768px) {
    .contact-title {
        font-size: 3.75rem;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    z-index: 20;
    margin-top: -5rem;
    padding-bottom: 5rem;
}

@media(min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

.contact-info-col {
    grid-column: span 1;
}

@media(min-width: 1024px) {
    .contact-info-col {
        grid-column: span 5;
    }
}

.contact-form-col {
    grid-column: span 1;
}

@media(min-width: 1024px) {
    .contact-form-col {
        grid-column: span 7;
    }
}

/* Info Cards */
.info-card-container {
    background-color: var(--surface-light);
    border-radius: var(--border-radius-2xl);
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid #f3f4f6;
}

body.dark .info-card-container {
    background-color: var(--surface-dark);
    border-color: #374151;
}

.info-header {
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.info-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

body.dark .info-item {
    border-bottom-color: #374151;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item:hover .info-icon {
    background-color: var(--primary);
    color: white;
}

.info-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background-color: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
    transition: all 0.3s;
}

body.dark .info-icon {
    background-color: rgba(30, 58, 138, 0.2);
}

.info-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
}

body.dark .info-value {
    color: white;
}

/* Map */
.map-container {
    height: 20rem;
    border-radius: var(--border-radius-2xl);
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    transition: filter 0.5s;
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

/* Form */
.form-container {
    background-color: var(--surface-light);
    border-radius: var(--border-radius-2xl);
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    height: 100%;
    border: 1px solid #f3f4f6;
}

body.dark .form-container {
    background-color: var(--surface-dark);
    border-color: #374151;
}

@media(min-width: 768px) {
    .form-container {
        padding: 3rem;
    }
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media(min-width: 768px) {
    .form-group-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    width: 100%;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
}

body.dark .form-label {
    color: #d1d5db;
}

.form-input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    color: #111827;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 1rem;
}

body.dark .form-input,
body.dark .form-select,
body.dark .form-textarea {
    background-color: rgba(31, 41, 55, 0.5);
    border-color: #374151;
    color: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
    background-color: white;
}

body.dark .form-input:focus {
    background-color: #1f2937;
}

.form-textarea {
    padding: 1rem;
    resize: none;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background-color: #ca8a04;
    transform: translateY(-2px);
}