/* Styles for contact_us.php, moved out of the page unchanged. */
/* Hide breadcrumb and reset page wrapper spacing for seamless banner. */
.rui-breadcrumbs,
#page-header {
    display: none !important;
}

#page-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#region-main {
    padding-top: 0 !important;
}

/* Center the navigation menu in the header. */
nav.navbar {
    justify-content: space-between !important;
}

.primary-navigation {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.primary-navigation .navigation {
    justify-content: center !important;
}

#usernavigation {
    margin-left: 0 !important;
}

/* Top navigation menu link styles - matching home page. */
.primary-navigation .navigation .nav-link {
    padding: 9px 15px;
    margin: 0 .15rem;
    min-height: 40px;
    font-weight: 500;
    color: #212121 !important;
    border: none;
    border-radius: 5px;
}

.primary-navigation .navigation .nav-link:hover,
.primary-navigation .navigation .nav-link:focus {
    color: #0ea5e9 !important;
    background-color: rgba(14, 165, 233, 0.1);
}

/* Language selector and topbar buttons - matching home page. */
.rui-topbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    width: max-content;
    min-height: 40px;
    border: none;
    border-radius: 5px;
    font-size: .75rem;
    font-weight: 500;
    background-color: #EEE !important;
    color: #212121 !important;
}

.rui-topbar-btn:hover,
.rui-topbar-btn:focus {
    background-color: #DDD !important;
    color: #212121 !important;
}

/* Login button styling - gold color for brand consistency. */
.rui-login-btn {
    background-color: #ba9607 !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

/* Page Hero Banner */
.page-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 32px 20px;
    text-align: center;
    margin-top: -24px;
}

.page-hero h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.page-hero p {
    color: #94a3b8;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 20px;
}

.contact-form {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.contact-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: #ba9607;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

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

/* Organization Request Section */
.org-request-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 20px 0;
}

.org-request-form {
    background: #fffbeb;
    border: 2px solid #fbbf24;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.org-request-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #92400e;
    text-align: center;
    margin-bottom: 8px;
}

.org-request-form .subtitle {
    text-align: center;
    color: #78716c;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Back to signup link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #0ea5e9;
}

.back-link svg {
    width: 18px;
    height: 18px;
}

/* Select2 country dropdown, matched to the other inputs. Scoped to the form because the Select2
   stylesheet loads after this block and its equal-specificity rules would otherwise win. */
.org-request-form .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.org-request-form .select2-container--default.select2-container--focus .select2-selection--single,
.org-request-form .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.org-request-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 24px 0 0;
    line-height: 1.5;
    font-size: 1rem;
    color: #1e293b;
}

.org-request-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8;
}

.org-request-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    right: 12px;
    height: 26px;
    transform: translateY(-50%);
}

/* Organization exists error message. */
.org-error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 0.9rem;
}

.org-error-message svg {
    flex-shrink: 0;
}

.form-group input.input-error {
    border-color: #dc2626;
    background: #fef2f2;
}

.form-group input.input-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Map Section */
.map-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

.map-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 24px;
}

.map-wrapper {
    position: relative;
    padding-bottom: 35%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer - matching home page. */
.modern-footer {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 30px 20px 20px;
    margin-top: 24px;
    margin-bottom: -100px;
    padding-bottom: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-block h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0ea5e9;
    margin-bottom: 12px;
}

.footer-block p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 8px;
}

.footer-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-block ul li {
    margin-bottom: 8px;
}

.footer-block ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-block ul li a:hover {
    color: #0ea5e9;
}

.footer-block i {
    color: #0ea5e9;
    margin-right: 8px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 1px solid #334155;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 1.5rem;
    }

    .page-hero {
        padding: 24px 16px;
    }

    .contact-section,
    .org-request-section {
        padding: 32px 16px;
    }

    .contact-form,
    .org-request-form {
        padding: 24px;
    }

    .map-section {
        padding: 0 16px 32px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
