/* ============================================
   M5 CONTACT PAGE STYLES
   Version 1.1.0
   ============================================ */

/* Hero Section */
.hero-contact {
    background: linear-gradient(135deg, #1A2332 0%, #2A3442 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content-contact {
    text-align: center;
    display: block;
    width: 100%;
}

.hero-content-contact h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1rem;
    text-align: center;
}

.hero-content-contact .hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px !important;
    margin: 0 auto;
    line-height: 1.8;
    text-align: center;
    display: block;
    padding: 0 2rem;
}

/* Chain Example on Contact Page */
.chain-example-contact {
    margin: 2.5rem auto 0 auto;
    text-align: center;
    max-width: 700px;
}

.chain-example-label-contact {
    font-size: 0.75rem;
    color: #C9A854;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.chain-example-items-contact {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.chain-item-contact {
    background: rgba(201, 168, 84, 0.1);
    border: 1px solid rgba(201, 168, 84, 0.3);
    color: #FFFFFF;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.chain-item-contact:hover {
    background: rgba(201, 168, 84, 0.15);
    border-color: rgba(201, 168, 84, 0.5);
    transform: translateY(-2px);
}

/* Global Presence Section */
.section-intro.text-center {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 48px auto;
}

.section-intro.text-center h2 {
    color: #1A2332;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-intro.text-center p {
    color: #6B7280;
    font-size: 1.125rem;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 800px !important;
    text-align: center;
    padding: 0 2rem;
    display: block;
}

/* Regions Grid - 5 regions layout */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
    align-items: start;
}

/* Bridge region spans both columns on larger screens */
@media (min-width: 1024px) {
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .region-card-bridge {
        grid-column: 1 / -1;
        max-width: 1100px;
        margin: 0 auto;
        width: 100%;
    }
    
    /* Center regular cards */
    .region-card:not(.region-card-bridge) {
        max-width: 650px;
        margin: 0 auto;
        width: 100%;
    }
}

.region-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.region-card:hover {
    border-color: #C9A854;
    box-shadow: 0 4px 12px rgba(201, 168, 84, 0.15);
    transform: translateY(-2px);
}

/* Special Bridge Region */
.region-card-bridge {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.03), rgba(201, 168, 84, 0.03));
    border: 2px solid #00BCD4;
}

.region-card-bridge:hover {
    border-color: #00BCD4;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.2);
}

.region-note {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0, 188, 212, 0.08);
    border-left: 3px solid #00BCD4;
    border-radius: 8px;
}

.region-note p {
    color: #1A2332;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.region-note strong {
    color: #00BCD4;
    font-weight: 700;
}

.region-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #C9A854, #d4b76a);
    color: #1A2332;
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: 12px;
    margin-bottom: 16px;
}

.region-card h3 {
    color: #1A2332;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.region-locations {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location {
    padding: 12px;
    background: #F9FAFB;
    border-radius: 8px;
}

.location strong {
    display: block;
    color: #1A2332;
    font-weight: 600;
    margin-bottom: 4px;
}

.location p {
    margin: 0;
}

.location p:first-of-type {
    margin-bottom: 4px;
}

.location .expertise {
    color: #6B7280;
    font-size: 0.875rem;
}

/* Location Detail Boxes */
.location-detail {
    margin: 12px 0 20px 0;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.08);
    border-left: 3px solid #10B981;
    border-radius: 6px;
}

.location-detail p {
    color: #1A2332;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.location-detail strong {
    color: #10B981;
    font-weight: 700;
}

/* Coming Soon Locations */
.location.coming-soon {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05), rgba(124, 77, 255, 0.05));
    border: 1px dashed rgba(0, 188, 212, 0.3);
}

.location.coming-soon strong {
    color: #00BCD4;
}

.location.coming-soon .expertise {
    color: #00BCD4;
    font-weight: 600;
    font-style: italic;
}

.chain-badge {
    display: inline-block;
    background: rgba(201, 168, 84, 0.1);
    color: #C9A854;
    padding: 3px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(201, 168, 84, 0.3);
}

.location.coming-soon .chain-badge {
    background: rgba(0, 188, 212, 0.1);
    color: #00BCD4;
    border-color: rgba(0, 188, 212, 0.3);
}

/* Contact Form Section */
.section-contact-form {
    padding: 96px 0;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 48px;
}

.form-header h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.form-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Form Container */
.form-container {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #1A2332;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background: #FFFFFF;
    color: #1A2332;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C9A854;
    box-shadow: 0 0 0 3px rgba(201, 168, 84, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9CA3AF;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%231A2332' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #1A2332; /* Black font for readability */
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #C9A854;
}

.checkbox-label span {
    flex: 1;
}

/* Form Actions */
.form-actions {
    margin-top: 8px;
}

.btn-primary-contact {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #C9A854, #d4b76a);
    color: #1A2332;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-primary-contact:hover {
    background: linear-gradient(135deg, #d4b76a, #C9A854);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(201, 168, 84, 0.3);
}

.btn-primary-contact:active {
    transform: translateY(0);
}

.btn-primary-contact:disabled {
    background: #D1D5DB;
    color: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Status Messages */
.form-status {
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.form-status.error {
    display: block;
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #EF4444;
}

/* Integration Notice */
.integration-notice {
    margin-top: 32px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(124, 77, 255, 0.1));
    border-left: 4px solid #00BCD4;
    border-radius: 8px;
}

.integration-notice p {
    color: #1A2332; /* Black font for readability */
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.integration-notice strong {
    color: #1A2332;
    font-weight: 600;
}

/* Foundation Links Grid */
.foundation-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.foundation-link-card {
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.foundation-link-card:hover {
    border-color: #C9A854;
    box-shadow: 0 8px 24px rgba(201, 168, 84, 0.15);
    transform: translateY(-4px);
}

.foundation-link-card h3 {
    color: #1A2332;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.foundation-link-card p {
    color: #6B7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-foundation,
.btn-icsn-link {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-foundation {
    background: linear-gradient(135deg, #C9A854, #d4b76a);
    color: #1A2332;
}

.btn-foundation:hover {
    background: linear-gradient(135deg, #d4b76a, #C9A854);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(201, 168, 84, 0.3);
}

.btn-icsn-link {
    background: linear-gradient(135deg, #00BCD4, #0097A7);
    color: #FFFFFF;
}

.btn-icsn-link:hover {
    background: linear-gradient(135deg, #0097A7, #00BCD4);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

/* Footer handled by universal-footer.css */
/* DO NOT ADD FOOTER STYLES HERE */

/* Responsive Design */
@media (max-width: 1024px) {
    .regions-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .foundation-links-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero-contact {
        padding: 80px 0 60px;
    }
    
    .hero-content-contact h1 {
        font-size: 2.5rem;
    }
    
    .hero-content-contact .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .chain-example-items-contact {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .chain-item-contact {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }
    
    .section-contact-form {
        padding: 72px 0;
    }
    
    .form-container {
        padding: 32px 24px;
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content-contact h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 24px 16px;
    }
    
    .btn-primary-contact {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .region-card {
        padding: 24px;
    }
    
    .foundation-link-card {
        padding: 32px 24px;
    }
}
