/* ============================================================
   WADAI Contact Page - Professional UI/UX Design
   ============================================================ */

/* Remove main padding for Contact Page */
main.wad-main {
    padding-top: 0 !important;
}

:root {
    --wadai-red: #d90217;
    --wadai-red-dark: #a60112;
    --wadai-red-light: #ef233c;
    --wadai-red-soft: rgba(217, 2, 23, 0.08);
    --wadai-red-medium: rgba(217, 2, 23, 0.15);
    --wadai-text-black: #1a1a1a;
    --wadai-text-gray: #6c757d;
    --wadai-text-light: #9ca3af;
    --wadai-light-grey: #e9ecef;
    --wadai-bg-light: #f8f9fa;
    --wadai-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Hero Section ========== */
.contact-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 2rem 0 4rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    overflow: hidden;
    margin-top: 0;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    inset: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--wadai-red-soft) 0%, transparent 70%);
    animation: floatShape 25s ease-in-out infinite;
    opacity: 0.6;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: -80px;
    left: -40px;
    animation-delay: 5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 20%;
    animation-delay: 10s;
}

@keyframes floatShape {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
        opacity: 0.6;
    }
    33% { 
        transform: translate(40px, -40px) scale(1.1) rotate(120deg); 
        opacity: 0.8;
    }
    66% { 
        transform: translate(-30px, 30px) scale(0.9) rotate(240deg); 
        opacity: 0.5;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--wadai-text-black);
    margin-bottom: 1.75rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    color: var(--wadai-text-gray);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-bottom: 3rem;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.75rem;
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(217, 2, 23, 0.4);
    color: white;
}

.btn-primary-large i {
    transition: transform 0.3s ease;
}

.btn-primary-large:hover i {
    transform: translateY(4px);
}

.hero-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.icon-item i {
    font-size: 2.5rem;
    color: var(--wadai-red);
}

.icon-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wadai-text-gray);
}

/* ========== Section Styles ========== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(217, 2, 23, 0.1);
    border-radius: 50px;
    color: var(--wadai-red);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    color: var(--wadai-text-black);
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.15rem;
    color: var(--wadai-text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========== Contact Information Section ========== */
.contact-info {
    padding: 5rem 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.info-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(217, 2, 23, 0.2);
    border-color: var(--wadai-red);
}

.info-icon {
    width: 72px;
    height: 72px;
    background: rgba(217, 2, 23, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(217, 2, 23, 0.2);
    transition: all 0.3s ease;
}

.info-icon i {
    font-size: 2rem;
    color: var(--wadai-red);
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(217, 2, 23, 0.2);
    box-shadow: 0 8px 25px rgba(217, 2, 23, 0.3);
}

.info-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wadai-text-black);
    margin-bottom: 0.75rem;
}

.info-text {
    font-size: 1rem;
    color: var(--wadai-text-gray);
    margin-bottom: 1rem;
}

.info-link {
    color: var(--wadai-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    display: block;
}

.info-link:hover {
    color: var(--wadai-red-dark);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(217, 2, 23, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wadai-red);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.25rem;
}

.social-link:hover {
    background: var(--wadai-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(217, 2, 23, 0.3);
}

/* ========== Contact Form Section ========== */
.contact-form-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.form-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.form-content {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(0, 0, 0, 0.08);
}

.contact-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--wadai-text-black);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: var(--wadai-red);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--wadai-red);
    box-shadow: 0 0 0 4px rgba(217, 2, 23, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    margin-top: 2rem;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    display: none;
}

.form-message.success {
    background: rgba(0, 200, 83, 0.1);
    color: #00c853;
    border: 2px solid rgba(0, 200, 83, 0.2);
    display: block;
}

.form-message.error {
    background: rgba(217, 2, 23, 0.1);
    color: var(--wadai-red);
    border: 2px solid rgba(217, 2, 23, 0.2);
    display: block;
}

.form-visual {
    position: sticky;
    top: 100px;
}

.visual-container {
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-xl);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.visual-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.visual-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.visual-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
    margin: 0;
}

/* ========== Office Location Section ========== */
.office-location {
    padding: 5rem 0;
    background: white;
}

.map-container {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
}

.map-overlay {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    max-width: 300px;
    z-index: 10;
}

.overlay-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wadai-text-black);
    margin-bottom: 1rem;
}

.overlay-content p {
    font-size: 1rem;
    color: var(--wadai-text-gray);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.overlay-content i {
    color: var(--wadai-red);
    font-size: 1.25rem;
}

/* ========== FAQ Section ========== */
.contact-faq {
    padding: 5rem 0;
    background: #f8f9fa;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.faq-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.faq-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.faq-card:hover::before {
    transform: scaleX(1);
}

.faq-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(217, 2, 23, 0.2);
    border-color: var(--wadai-red);
}

.faq-icon {
    width: 72px;
    height: 72px;
    background: rgba(217, 2, 23, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(217, 2, 23, 0.2);
    transition: all 0.3s ease;
}

.faq-icon i {
    font-size: 2rem;
    color: var(--wadai-red);
}

.faq-card:hover .faq-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(217, 2, 23, 0.2);
    box-shadow: 0 8px 25px rgba(217, 2, 23, 0.3);
}

.faq-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wadai-text-black);
    margin-bottom: 1rem;
}

.faq-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--wadai-text-gray);
    margin-bottom: 1.5rem;
}

.faq-link {
    color: var(--wadai-red);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.faq-link:hover {
    gap: 0.75rem;
    color: var(--wadai-red-dark);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(217, 2, 23, 0.1);
    border-color: var(--wadai-red-soft);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(217, 2, 23, 0.02);
}

.faq-question h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--wadai-text-black);
    margin: 0;
}

.faq-question i {
    font-size: 1.25rem;
    color: var(--wadai-red);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--wadai-text-gray);
    margin: 0;
}

/* ========== Newsletter Section ========== */
.contact-newsletter {
    padding: 5rem 0;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.newsletter-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.newsletter-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(217, 2, 23, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(217, 2, 23, 0.04) 0%, transparent 50%);
    opacity: 0.6;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(0, 0, 0, 0.08);
}

.newsletter-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--wadai-text-black);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.newsletter-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--wadai-text-gray);
    margin-bottom: 2.5rem;
}

.newsletter-form {
    margin-top: 2rem;
}

.newsletter-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1.125rem 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--wadai-red);
    box-shadow: 0 0 0 4px rgba(217, 2, 23, 0.1);
}

.newsletter-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    display: none;
    font-size: 0.95rem;
}

.newsletter-message.success {
    background: rgba(0, 200, 83, 0.1);
    color: #00c853;
    border: 2px solid rgba(0, 200, 83, 0.2);
    display: block;
}

.newsletter-message.error {
    background: rgba(217, 2, 23, 0.1);
    color: var(--wadai-red);
    border: 2px solid rgba(217, 2, 23, 0.2);
    display: block;
}

/* ========== Animations ========== */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate="fadeInUp"] {
    transform: translateY(40px);
}

[data-animate="fadeInLeft"] {
    transform: translateX(-40px);
}

[data-animate="fadeInRight"] {
    transform: translateX(40px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
}

/* ========== Responsive Design ========== */
@media (max-width: 1200px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .contact-hero {
        min-height: 50vh;
        padding: 2rem 0 3rem;
    }
    
    .form-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-visual {
        position: relative;
        top: 0;
    }
    
    .visual-container {
        min-height: 400px;
    }
    
    .map-overlay {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 1.5rem;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: auto;
        padding: 1.5rem 0 2.5rem;
    }
    
    .hero-icons {
        gap: 2rem;
    }
    
    .info-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-content {
        padding: 2rem 1.5rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .btn-primary-large {
        width: 100%;
        justify-content: center;
    }
}

