:root {
    --color-bg: #181a1b;
    --color-bg-alt: #23272b;
    --color-text: #fff;
    --color-primary: #2563eb;
    --color-secondary: #ffe066;
    --color-border: #2563eb55;
    --color-input-bg: #23272b;
    --color-input-text: #fff;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
}

body.light-mode {
    --color-bg: #f6f8fa;
    --color-bg-alt: #fff;
    --color-text: #181a1b;
    --color-primary: #2563eb;
    --color-secondary: #ffe066;
    --color-border: #2563eb55;
    --color-input-bg: #fff;
    --color-input-text: #181a1b;
}

.contact-info,
.contact-map,
.contact-form-section {
    background: var(--color-bg-alt);
    color: var(--color-text);
    border-radius: 16px;
    box-shadow: 0 4px 24px #000a;
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.contact-form-section {
    max-width: 700px;
    margin: 3rem auto 2rem auto;
    border-radius: 18px;
    padding: 2.5rem 2rem;
    text-align: center;
}

.contact-hero {
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-bg) 100%);
    color: var(--color-text);
    text-align: center;
    padding: 4rem 1rem 2rem 1rem;
}
.contact-hero h1 {
    font-size: 2.7rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    margin-bottom: 1.2rem;
}
.contact-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

.contact-info h2,
.contact-form-section h2 {
    color: var(--color-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.contact-details i,
.contact-social a {
    color: var(--color-primary);
}

.contact-social a:hover {
    color: var(--color-secondary);
}

.contact-details {
    list-style: none;
    padding: 0;
    margin-bottom: 1.2rem;
}
.contact-details li {
    margin-bottom: 0.7rem;
    font-size: 1.08rem;
    display: flex;
    align-items: center;
    gap: 0.7em;
}
.contact-details i {
    font-size: 1.1em;
}

.contact-social {
    display: flex;
    gap: 1.1rem;
    margin-top: 1rem;
}
.contact-social a {
    font-size: 1.5rem;
    transition: color 0.2s;
}

.contact-info-map {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 3rem auto 2rem auto;
    padding: 0 1rem;
    align-items: stretch;
    justify-content: space-between;
}

.contact-info,
.contact-map {
    flex: 1 1 380px;
    min-width: 320px;
}

.contact-map {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    height: 100%;
}

.contact-map iframe {
    flex: 1 1 0;
    min-height: 320px;
    min-width: 0;
    width: 100%;
    border-radius: 12px;
    border: none;
    margin-bottom: 0.7rem;
    display: block;
    height: 320px; 
}

@media (max-width: 900px) {
    .contact-info-map {
        flex-direction: column;
        gap: 1.5rem;
    }
    .contact-map,
    .contact-info {
        width: 100%;
        min-width: unset;
        max-width: 600px; 
        margin: 0 auto;  
    }
}

@media (max-width: 700px) {
    .contact-map,
    .contact-info {
        max-width: 100%;  
        padding: 0.5rem;  
    }
    .contact-hero h1 { font-size: 2rem; }
    .contact-form-section { padding: 1.2rem 0.5rem; }
    .contact-map iframe { height: 220px; }
}

.map-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
    font-size: 1rem;
    margin: 1.2rem 0 1.5rem 0;
    text-align: center;
    display: block;
}
.map-link:hover {
    color: var(--color-secondary);
}

.contact-form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.form-row {
    display: flex;
    gap: 1.2rem;
    width: 100%;
    margin: 0;
    padding: 0;
}
.form-row input {
    flex: 1 1 0;
    min-width: 0;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-input-bg);
    color: var(--color-input-text);
    font-size: 1.08rem;
    font-family: inherit;
    resize: none;
    transition: border 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border: 1.5px solid var(--color-primary);
    outline: none;
}
.contact-form .btn-main {
    align-self: flex-end;
    font-size: 1.15rem;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    box-shadow: 0 4px 24px #2563eb55;
    margin-top: 0.5rem;
    background: var(--color-primary);
    color: #fff;
}

body.light-mode .contact-form .btn-main {
    background: var(--color-primary);
    color: #fff;
}