/* ===================================
   Contact Page Stylesheet
   Using Top Events Color Palette
   =================================== */

/* ===================================
   Contact Hero Banner
   =================================== */
.contact-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--color-black) 100%);
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(
        circle 500px,
        rgba(234, 37, 42, 0.3) 0%, 
        rgba(234, 37, 42, 0.15) 25%, 
        rgba(234, 37, 42, 0.05) 50%,
        transparent 70%
    );
    background-size: 100% 100%;
    animation: lensFlare 12s ease-in-out infinite;
    z-index: 1;
    opacity: 0.8;
}

@keyframes lensFlare {
    0% { 
        background-position: 20% 50%;
    }
    25% {
        background-position: 80% 30%;
    }
    50% { 
        background-position: 70% 70%;
    }
    75% {
        background-position: 30% 60%;
    }
    100% { 
        background-position: 20% 50%;
    }
}

/* Powerful Moving Sun Effect - Below the gradient */
.contact-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2000px;
    height: 2000px;
    margin: -1000px 0 0 -1000px;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 200, 200, 0.5) 4%,
        rgba(234, 37, 42, 0.4) 8%, 
        rgba(234, 37, 42, 0.3) 12%, 
        rgba(234, 37, 42, 0.2) 18%,
        rgba(234, 37, 42, 0.12) 25%,
        rgba(234, 37, 42, 0.06) 35%,
        rgba(234, 37, 42, 0.03) 45%,
        rgba(234, 37, 42, 0.015) 55%,
        rgba(234, 37, 42, 0.005) 65%,
        transparent 75%
    );
    animation: powerfulSun 18s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes powerfulSun {
    0% { 
        transform: translate(-15%, 0%);
        opacity: 0.5;
    }
    25% {
        transform: translate(15%, -10%);
        opacity: 0.8;
    }
    50% { 
        transform: translate(15%, 10%);
        opacity: 1;
    }
    75% {
        transform: translate(-15%, 10%);
        opacity: 0.8;
    }
    100% { 
        transform: translate(-15%, 0%);
        opacity: 0.5;
    }
}

/* Lens Flare Reflections */
.lens-flare-reflections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.flare {
    position: absolute;
    border-radius: 50%;
    animation: flareMove 18s ease-in-out infinite;
}

/* Flare 1 - Hexagonal aperture reflection */
.flare-1 {
    width: 140px;
    height: 140px;
    top: 50%;
    left: 50%;
    margin: -70px 0 0 -70px;
    background: 
        radial-gradient(circle, rgba(234, 37, 42, 0.06) 0%, transparent 70%),
        conic-gradient(from 0deg, 
            rgba(255, 100, 120, 0.08) 0deg 60deg,
            transparent 60deg 120deg,
            rgba(255, 100, 120, 0.08) 120deg 180deg,
            transparent 180deg 240deg,
            rgba(255, 100, 120, 0.08) 240deg 300deg,
            transparent 300deg 360deg);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    filter: blur(2px);
}

/* Flare 2 - Rainbow chromatic aberration */
.flare-2 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    margin: -50px 0 0 -50px;
    background: 
        radial-gradient(circle at 45% 45%, rgba(255, 100, 100, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(100, 255, 100, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 55% 55%, rgba(100, 100, 255, 0.08) 0%, transparent 50%);
    filter: blur(3px);
    animation-name: flareMove2;
}

/* Flare 3 - Bright starburst */
.flare-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    margin: -40px 0 0 -40px;
    background: 
        radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 200, 200, 0.1) 20%, transparent 50%),
        linear-gradient(0deg, transparent 45%, rgba(255, 255, 255, 0.12) 50%, transparent 55%),
        linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.12) 50%, transparent 55%),
        linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.08) 50%, transparent 55%),
        linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.08) 50%, transparent 55%);
    filter: blur(1px);
    animation-name: flareMove3;
}

/* Flare 4 - Soft glow with ring */
.flare-4 {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -30px;
    background: 
        radial-gradient(circle, rgba(255, 200, 200, 0.12) 0%, rgba(234, 37, 42, 0.08) 30%, transparent 40%),
        radial-gradient(circle, transparent 35%, rgba(255, 150, 150, 0.1) 40%, transparent 50%);
    filter: blur(2px);
    animation-name: flareMove4;
}

/* Main flare - FAR opposite to sun */
@keyframes flareMove {
    0% { 
        transform: translate(250%, 0%);
        opacity: 0.4;
    }
    25% {
        transform: translate(-250%, 150%);
        opacity: 0.7;
    }
    50% { 
        transform: translate(-250%, -150%);
        opacity: 0.9;
    }
    75% {
        transform: translate(250%, -150%);
        opacity: 0.7;
    }
    100% { 
        transform: translate(250%, 0%);
        opacity: 0.4;
    }
}

/* Flare 2 - Middle distance opposite */
@keyframes flareMove2 {
    0% { 
        transform: translate(180%, 0%);
        opacity: 0.3;
    }
    25% {
        transform: translate(-180%, 110%);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-180%, -110%);
        opacity: 0.8;
    }
    75% {
        transform: translate(180%, -110%);
        opacity: 0.6;
    }
    100% { 
        transform: translate(180%, 0%);
        opacity: 0.3;
    }
}

/* Flare 3 - Closer opposite */
@keyframes flareMove3 {
    0% { 
        transform: translate(130%, 0%);
        opacity: 0.5;
    }
    25% {
        transform: translate(-130%, 80%);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-130%, -80%);
        opacity: 1;
    }
    75% {
        transform: translate(130%, -80%);
        opacity: 0.8;
    }
    100% { 
        transform: translate(130%, 0%);
        opacity: 0.5;
    }
}

/* Flare 4 - Near center opposite */
@keyframes flareMove4 {
    0% { 
        transform: translate(90%, 0%);
        opacity: 0.4;
    }
    25% {
        transform: translate(-90%, 55%);
        opacity: 0.7;
    }
    50% { 
        transform: translate(-90%, -55%);
        opacity: 0.9;
    }
    75% {
        transform: translate(90%, -55%);
        opacity: 0.7;
    }
    100% { 
        transform: translate(90%, 0%);
        opacity: 0.4;
    }
}

.hero-content-center {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero .section-label {
    display: inline-block;
    background: rgba(234, 37, 42, 0.2);
    color: var(--color-red);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Breadcrumbs */
.breadcrumbs-simple {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.breadcrumbs-simple .current {
    color: var(--color-red);
    font-weight: 600;
}

/* Hero Title */
.contact-hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-hero-title span {
    color: var(--color-red);
}

.contact-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ===================================
   Contact Info Cards Section
   =================================== */
.contact-info-section {
    padding: 60px 0;
    background-color: var(--bg-primary);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.contact-info-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid #E0E0E0;
    transition: all 0.3s ease;
}

[data-theme="dark"] .contact-info-card {
    border-color: #2a2a2a;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    border-color: #EA252A;
    box-shadow: 0 10px 30px rgba(234, 37, 42, 0.15);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #EA252A 0%, #c71f24 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.contact-info-card:hover .contact-info-icon {
    transform: scale(1.1) rotate(360deg);
}

.contact-info-icon svg {
    width: 28px;
    height: 28px;
    stroke: #FFFFFF;
}

.contact-info-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.contact-info-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-info-text a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-text a:hover {
    color: #EA252A;
}

/* ===================================
   Contact Form Section
   =================================== */
.contact-form-section {
    padding: 100px 0;
    background-color: #F5F5F5;
}

[data-theme="dark"] .contact-form-section {
    background-color: #0f0f0f;
}

.form-intro {
    text-align: center;
    margin-bottom: 50px;
}

.form-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.form-title span {
    color: #EA252A;
}

.form-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: start;
}

.contact-form-wrapper {
    width: 100%;
}

.contact-form {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .contact-form {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Form spacing - Clean rebuild */
.contact-form .form-group {
    margin-bottom: 0;
}

/* Full Name field */
.contact-form > .form-group:nth-child(1) {
    margin-bottom: 12px;
}

/* Email/Phone row */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 12px;
}

.contact-form .form-row .form-group {
    margin-bottom: 0;
}

/* Subject field */
.contact-form > .form-group:nth-child(3) {
    margin-bottom: 12px;
}

/* Message field */
.contact-form > .form-group:nth-child(4) {
    margin-bottom: 8px;
}

/* Captcha field */
.contact-form > .form-group:nth-child(5) {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    border-color: #2a2a2a;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #EA252A;
    box-shadow: 0 0 0 3px rgba(234, 37, 42, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Message Counter */
.message-counter {
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 5px;
    font-weight: 500;
}

/* Captcha Styling */
.captcha-group {
    margin: 20px 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.captcha-group label {
    font-weight: 600 !important;
    color: var(--color-red) !important;
    margin-bottom: 0 !important;
    flex: 1 1 auto !important;
    min-width: 200px !important;
    display: inline-block !important;
    word-wrap: break-word !important;
}

.captcha-group input {
    width: 150px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
}

/* Mobile responsive for captcha */
@media (max-width: 768px) {
    .captcha-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .captcha-group label {
        white-space: normal !important;
        width: 100% !important;
        min-width: unset !important;
    }
    
    .captcha-group input {
        width: 100% !important;
    }
}

/* Hide number input arrows */
.captcha-group input[type="number"]::-webkit-inner-spin-button,
.captcha-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.captcha-group input[type="number"] {
    -moz-appearance: textfield;
}

.submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #EA252A 0%, #c71f24 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(234, 37, 42, 0.3);
}

.submit-btn svg {
    width: 20px;
    height: 20px;
    stroke: #FFFFFF;
}

/* ===================================
   Business Hours (Right Side of Form)
   =================================== */
.business-hours-wrapper {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

[data-theme="dark"] .business-hours-wrapper {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hours-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.hours-title span {
    color: #EA252A;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hours-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 2px solid #E0E0E0;
    transition: all 0.3s ease;
}

[data-theme="dark"] .hours-item {
    border-color: #2a2a2a;
}

.hours-item:hover {
    border-color: #EA252A;
}

.hours-item.closed {
    opacity: 0.6;
}

.hours-item.closed:hover {
    border-color: #999;
}

.hours-item .day {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hours-item .day svg {
    width: 18px;
    height: 18px;
    stroke: #EA252A;
    flex-shrink: 0;
}

.hours-item.closed .day svg {
    stroke: #999;
}

.hours-item .day span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.hours-item .time {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding-left: 28px;
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.faq-title span {
    color: #EA252A;
}

.faq-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid #E0E0E0;
    overflow: hidden;
    transition: all 0.3s ease;
}

[data-theme="dark"] .faq-item {
    border-color: #2a2a2a;
}

.faq-item:hover {
    border-color: #EA252A;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.faq-icon {
    width: 30px;
    height: 30px;
    background: #EA252A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-icon svg {
    width: 16px;
    height: 16px;
    stroke: #FFFFFF;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* ===================================
   Map Section (Full Width at End)
   =================================== */
.map-section {
    padding: 0;
}

.map-container-full {
    width: 100%;
    height: 450px;
}

.map-container-full iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(20%);
}


/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .contact-hero-title {
        font-size: 48px;
    }

    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 0 80px;
    }

    .contact-hero-title {
        font-size: 36px;
    }

    .contact-hero-subtitle {
        font-size: 18px;
    }

    .contact-hero .section-label {
        font-size: 12px;
        padding: 6px 16px;
    }

    .contact-form-section {
        padding: 60px 0;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 35px 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .form-row .form-group {
        margin-bottom: 0;
    }
    
    .form-row .form-group:last-child {
        margin-bottom: 0;
    }

    .form-title {
        font-size: 32px;
    }

    .business-hours-wrapper {
        position: relative;
        top: 0;
        padding: 30px 25px;
    }

    .faq-section {
        padding: 60px 0;
    }

    .faq-title {
        font-size: 32px;
    }

    .map-container-full {
        height: 350px;
    }

    .map-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .contact-hero-title {
        font-size: 28px;
    }

    .breadcrumbs {
        font-size: 12px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .form-title {
        font-size: 28px;
    }

    .contact-info-section {
        padding: 50px 0;
    }

    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .contact-info-card {
        padding: 20px 15px;
    }

    .contact-info-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto 10px;
    }

    .contact-info-icon svg {
        width: 22px;
        height: 22px;
    }

    .contact-info-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .contact-info-text {
        font-size: 12px;
    }

    .hours-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .faq-title {
        font-size: 28px;
    }

    .faq-question {
        padding: 18px 20px;
    }

    .faq-question h3 {
        font-size: 15px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 18px 20px;
    }

    .faq-answer p {
        font-size: 14px;
    }

    .map-container-full {
        height: 300px;
    }

    .map-container {
        height: 300px;
    }
}

/* ===================================
   CTA Section
   =================================== */
.projects-cta {
    background: linear-gradient(135deg, var(--color-red) 0%, #c71f24 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.projects-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: ctaFloat1 20s ease-in-out infinite;
}

@keyframes ctaFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -20px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 10px) scale(0.95);
    }
}

.cta-content-center {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.projects-cta h2 {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.projects-cta h2 span {
    color: rgba(255, 255, 255, 0.9);
}

.projects-cta p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background-color: white;
    color: var(--color-red);
    border: 2px solid white;
}

.btn-white:hover {
    background-color: transparent;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--color-red);
}

/* CTA Responsive */
@media (max-width: 768px) {
    .projects-cta {
        padding: 60px 0;
    }

    .projects-cta h2 {
        font-size: 32px;
    }

    .projects-cta p {
        font-size: 18px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .projects-cta h2 {
        font-size: 26px;
    }

    .projects-cta p {
        font-size: 16px;
    }
}

