/* ============================================================
   CODEWORD HACKATHON
   CONTACT PAGE
   Theme: Purple / Indigo + Orange
   ============================================================ */


/* ============================================================
   CONTACT HERO
   ============================================================ */

.cw-contact-hero {

    position: relative;

    width: 100%;

    min-height: 330px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #24204E 0%,
            #4F46D8 55%,
            #3932B8 100%
        );

    color: #FFFFFF;

}


/* Decorative circles */

.cw-contact-hero::before {

    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    top: -220px;
    right: -100px;

    border-radius: 50%;

    background:
        rgba(246, 166, 35, .18);

}


.cw-contact-hero::after {

    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    bottom: -190px;
    left: -100px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .07);

}


/* Hero content */

.cw-contact-hero-content {

    position: relative;

    z-index: 3;

    width: min(92%, 900px);

    padding: 65px 20px;

    text-align: center;

}


/* Badge */

.cw-contact-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-bottom: 18px;

    padding: 8px 15px;

    border: 1px solid rgba(246, 166, 35, .45);

    border-radius: 30px;

    background: rgba(246, 166, 35, .12);

    color: #FFD58A;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


/* Hero heading */

.cw-contact-hero h1 {

    margin: 0;

    color: #FFFFFF;

    font-family: 'Space Grotesk', 'Manrope', sans-serif;

    font-size: clamp(40px, 6vw, 68px);

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -1.5px;

}


.cw-contact-hero h1 span {

    color: var(--orange);

}


.cw-contact-hero p {

    max-width: 720px;

    margin: 20px auto 0;

    color: rgba(255, 255, 255, .88);

    font-size: 15px;

    line-height: 1.8;

    font-weight: 500;

}


/* ============================================================
   CONTACT SECTION
   ============================================================ */

.cw-contact-section {

    width: 100%;

    padding: 75px 20px 90px;

    background:
        linear-gradient(
            180deg,
            #F5F7FB 0%,
            #FFFFFF 100%
        );

}


/* Main container */

.cw-contact-container {

    width: min(100%, 1180px);

    margin: auto;

}


/* ============================================================
   HEADING
   ============================================================ */

.cw-contact-heading {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    margin-bottom: 42px;

    text-align: left;

}


.cw-contact-icon {

    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 16px;

    background:
        var(--primary-light);

    color:
        var(--primary);

    font-size: 25px;

    box-shadow:
        0 8px 22px rgba(79, 70, 216, .12);

}


.cw-contact-heading h2 {

    margin: 0;

    color: var(--dark);

    font-family: 'Space Grotesk', 'Manrope', sans-serif;

    font-size: 28px;

    line-height: 1.2;

    font-weight: 800;

}


.cw-contact-heading p {

    margin-top: 6px;

    color: var(--muted);

    font-size: 12px;

}


/* ============================================================
   CONTACT GRID
   ============================================================ */

.cw-contact-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

}


/* ============================================================
   CONTACT CARD
   ============================================================ */

.cw-contact-card {

    position: relative;

    min-height: 170px;

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 28px 25px;

    background: #FFFFFF;

    border: 1px solid var(--border);

    border-radius: 18px;

    box-shadow: var(--shadow-sm);

    overflow: hidden;

    transition: var(--transition);

}


.cw-contact-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--orange)
        );

    transform: scaleX(0);

    transform-origin: left;

    transition: var(--transition);

}


.cw-contact-card:hover {

    transform: translateY(-7px);

    border-color:
        rgba(79, 70, 216, .25);

    box-shadow: var(--shadow-md);

}


.cw-contact-card:hover::before {

    transform: scaleX(1);

}


/* ============================================================
   CARD ICON
   ============================================================ */

.cw-contact-card-icon {

    width: 64px;
    height: 64px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 16px;

    font-size: 25px;

    transition: var(--transition);

}


.cw-contact-card:hover .cw-contact-card-icon {

    transform: scale(1.08) rotate(-3deg);

}


/* Phone */

.cw-contact-card-icon.phone {

    background: #EEEEFF;

    color: var(--primary);

}


/* Email */

.cw-contact-card-icon.email {

    background: var(--orange-light);

    color: var(--orange-dark);

}


/* Website */

.cw-contact-card-icon.website {

    background: #EAF9F0;

    color: #16844B;

}


/* Hackathon */

.cw-contact-card-icon.hackathon {

    background: #EEEEFF;

    color: var(--primary);

}


/* ============================================================
   CARD CONTENT
   ============================================================ */

.cw-contact-card-content {

    min-width: 0;

    flex: 1;

}


.cw-contact-label {

    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 10px;

    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: 1px;

}


.cw-contact-card h3 {

    margin: 0;

    color: var(--dark);

    font-family: 'Space Grotesk', 'Manrope', sans-serif;

    font-size: 18px;

    line-height: 1.3;

    font-weight: 750;

    overflow-wrap: anywhere;

}


.cw-contact-card p {

    margin-top: 8px;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.6;

}


/* Arrow */

.cw-contact-arrow {

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 12px;

    transition: var(--transition);

}


.cw-contact-card:hover .cw-contact-arrow {

    background: var(--primary);

    color: #FFFFFF;

    transform: translateX(4px);

}


/* ============================================================
   HELP BOX
   ============================================================ */

.cw-contact-help {

    position: relative;

    margin-top: 28px;

    padding: 28px 30px;

    display: flex;

    align-items: center;

    gap: 20px;

    background:
        linear-gradient(
            135deg,
            #24204E,
            #4F46D8
        );

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 15px 35px rgba(79, 70, 216, .16);

}


/* Orange decorative circle */

.cw-contact-help::after {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -70px;
    top: -90px;

    border-radius: 50%;

    background:
        rgba(246, 166, 35, .16);

}


/* Help icon */

.cw-help-icon {

    width: 55px;
    height: 55px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    background:
        rgba(255, 255, 255, .12);

    border:
        1px solid rgba(255, 255, 255, .18);

    color: var(--orange);

    font-size: 23px;

}


/* Help content */

.cw-help-content {

    position: relative;

    z-index: 2;

    flex: 1;

}


.cw-help-content h3 {

    margin: 0;

    color: #FFFFFF;

    font-size: 17px;

    font-weight: 800;

}


.cw-help-content p {

    max-width: 720px;

    margin-top: 5px;

    color: rgba(255, 255, 255, .78);

    font-size: 10px;

    line-height: 1.7;

}


/* Email button */

.cw-help-btn {

    position: relative;

    z-index: 3;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    flex-shrink: 0;

    min-height: 43px;

    padding: 10px 18px;

    border-radius: 10px;

    background: var(--orange);

    color: #FFFFFF;

    font-size: 11px;

    font-weight: 750;

    box-shadow:
        0 7px 18px rgba(246, 166, 35, .22);

    transition: var(--transition);

}


.cw-help-btn:hover {

    background: var(--orange-dark);

    color: #FFFFFF;

    transform: translateY(-2px);

}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 800px) {

    .cw-contact-grid {

        grid-template-columns: 1fr;

    }

    .cw-contact-hero {

        min-height: 300px;

    }

    .cw-contact-heading {

        justify-content: flex-start;

    }

    .cw-contact-help {

        align-items: flex-start;

        flex-wrap: wrap;

    }

    .cw-help-content {

        min-width: calc(100% - 80px);

    }

    .cw-help-btn {

        margin-left: 75px;

    }

}


@media (max-width: 520px) {

    .cw-contact-section {

        padding:
            55px 15px 70px;

    }

    .cw-contact-hero-content {

        padding:
            55px 15px;

    }

    .cw-contact-hero h1 {

        font-size: 40px;

    }

    .cw-contact-hero p {

        font-size: 13px;

    }

    .cw-contact-heading {

        gap: 12px;

        margin-bottom: 30px;

    }

    .cw-contact-icon {

        width: 50px;
        height: 50px;

        font-size: 21px;

    }

    .cw-contact-heading h2 {

        font-size: 22px;

    }

    .cw-contact-heading p {

        font-size: 10px;

    }

    .cw-contact-card {

        min-height: 150px;

        padding: 22px 18px;

        gap: 14px;

    }

    .cw-contact-card-icon {

        width: 52px;
        height: 52px;

        font-size: 21px;

        border-radius: 13px;

    }

    .cw-contact-card h3 {

        font-size: 15px;

    }

    .cw-contact-card p {

        font-size: 9px;

    }

    .cw-contact-arrow {

        width: 30px;
        height: 30px;

    }

    .cw-contact-help {

        padding: 22px;

    }

    .cw-help-icon {

        width: 48px;
        height: 48px;

    }

    .cw-help-content {

        min-width: calc(100% - 65px);

    }

    .cw-help-btn {

        width: 100%;

        margin-left: 0;

    }

}