.contact-page-wrapper {
    width: 100%;
    padding-bottom: 80px;
    animation: page-fade-in 0.5s ease-out;
}

@keyframes page-fade-in {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-banner {
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid;
    margin-bottom: 60px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-banner h1 {
    font-size: 3em;
    font-weight: 700;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.page-banner p {
    font-size: 1.2em;
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.contact-content-area {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-content-area:has(> .contact-form-container:not(*)) {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}
.contact-content-area:not(:has(> .contact-form-container)) {
     grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-list h2, .contact-form-container h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item .icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    background-color: var(--primary-color-trans, rgba(229, 9, 20, 0.1));
    color: var(--primary-color, #e50914);
}

.contact-item .text h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.contact-item .text p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
    opacity: 0.8;
    word-break: break-word;
}

.contact-item .text p a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item .text p a:hover {
    text-decoration: underline;
}

.contact-form-container {
    padding: 35px;
    border-radius: 12px;
}

.map-section {
    margin-top: 60px;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 12px;
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color, #e50914);
    box-shadow: 0 0 0 3px var(--primary-color-trans, rgba(229, 9, 20, 0.2));
}

textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    color: #fff;
    background-color: var(--primary-color, #e50914);
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.submit-btn i {
    margin-right: 10px;
}

body.light-mode .contact-page-wrapper { background-color: #fff; }
body.light-mode .page-banner { background-color: #f8f9fa; border-color: #dee2e6; }
body.light-mode .page-banner h1 { color: #212529; }
body.light-mode .page-banner p { color: #6c757d; }
body.light-mode .contact-info-list h2, body.light-mode .contact-form-container h2 { color: #212529; border-color: #e9ecef;}
body.light-mode .contact-item .text h3 { color: #343a40; }
body.light-mode .contact-item .text p { color: #495057; }
body.light-mode .contact-item .text p a { color: #495057; }
body.light-mode .contact-item .text p a:hover { color: var(--primary-color, #e50914); }
body.light-mode .contact-form-container { background-color: #f8f9fa; }
body.light-mode .form-group label { color: #495057; }
body.light-mode .form-group input, body.light-mode .form-group textarea { background-color: #fff; border-color: #ced4da; color: #495057; }
body.light-mode .form-group input::placeholder, body.light-mode .form-group textarea::placeholder { color: #adb5bd; }
body.light-mode .map-container { border: 1px solid #dee2e6; padding: 5px; border-radius: 14px; }


body.dark-mode .contact-page-wrapper { background-color: var(--bg-color-dark, #121212); }
body.dark-mode .page-banner { background-color: #1a1a1a; border-color: #2a2a2a; }
body.dark-mode .page-banner h1 { color: #f8f9fa; }
body.dark-mode .page-banner p { color: #adb5bd; }
body.dark-mode .contact-info-list h2, body.dark-mode .contact-form-container h2 { color: #f8f9fa; border-color: #333;}
body.dark-mode .contact-item .text h3 { color: #e9ecef; }
body.dark-mode .contact-item .text p { color: #adb5bd; }
body.dark-mode .contact-item .text p a { color: #adb5bd; }
body.dark-mode .contact-item .text p a:hover { color: #fff; }
body.dark-mode .contact-form-container { background-color: #1c1c1c; }
body.dark-mode .form-group label { color: #ced4da; }
body.dark-mode .form-group input, body.dark-mode .form-group textarea { background-color: #252525; border-color: #444; color: #f0f0f0; }
body.dark-mode .form-group input::placeholder, body.dark-mode .form-group textarea::placeholder { color: #6c757d; }
body.dark-mode .map-container { border: 1px solid #2a2a2a; padding: 5px; border-radius: 14px; }

@media (max-width: 992px) {
    .contact-content-area {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 576px) {
    .page-banner h1 { font-size: 2.2em; }
    .page-banner p { font-size: 1em; }
    .contact-form-container { padding: 25px; }
}