:root {
    --bg-dark: #000000;

    /* TEXT */
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --text-light: #dbdbdbc9;

    /* HOME IMAGE SLIDER */
    --maxw: 1400px;
}

::selection {
    background: #d67063;
    color: white;
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    scroll-behavior: smooth;
    color: var(--text-primary);
    background-color: var(--bg-dark);
}

/* CONTAINER AND TYPOGRAPHY */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 2rem 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--text-primary);
    margin: 0 0 1rem 0;

}

h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    letter-spacing: 3px;

}

h3 {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    letter-spacing: 2px;
}

p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

b {
    letter-spacing: 1px;
}

main {
   background: 
  radial-gradient(70% 55% at 50% 50%, #1f3f5a 0%, #0f2a43 18%, #081f33 34%, #050f22 50%, #030a18 66%, #02060f 80%, #010306 92%, #010103 97%, #000002 100%),
  radial-gradient(160% 130% at 10% 10%, rgba(0, 0, 0, 0) 38%, #000002 76%, #000001 100%),
  radial-gradient(160% 130% at 90% 90%, rgba(0, 0, 0, 0) 38%, #000002 76%, #000001 100%);

}


/* HEADING */
.contact-heading {
    margin-top: 90px;
    position: relative;
    height: 380px;
    background: url('/images/school-image-1.JPG') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.contact-inner {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 0 .5rem;
}

.contact-inner .subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* TEXT AND HEADING */
.contact-text-and-image {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-first-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.our-location p {
    opacity: 0.7;
}

.address-section {
    display: flex;
    flex-direction: column;
    gap: 1px;
    color: white;
}

.address-section p,
.address-section a {
    color: white;
    opacity: 0.95;
}

.contact-image-cnt {
    max-width: 500px;
    max-height: 500px;
}

.contact-image-cnt img {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    object-fit: cover;
    border-radius: 5px;
}


/* LOCATION */
.map {
    width: 100%;
    height: 500px;
}

.map iframe {
    width: 100%;
    height: 100%;
}


/* CONTACT */
.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-paragraph {
    max-width: 530px;
}

.contact-paragraph h2 {
    line-height: 1.3;
}

.form-container {
    max-width: 500px;
    width: 100%;
    display: flex;
    justify-content: end;
    flex-direction: column;
    gap: 2rem;
}

.form-container input,
textarea {
    width: 100%;
}

input,
textarea {
    padding: 1rem 2rem;
    border: none;
    border-bottom: 1px solid hsl(0, 0%, 85%);
    background: transparent;
    font-size: 1rem;
    line-height: 1.625;
    color: hsl(0, 0%, 85%);
}

textarea {
    resize: none;
    height: 100px;
}

input:focus,
textarea:focus {
    outline: none;
}

button {
    border: none;
    background-color: transparent;
    padding-bottom: 0.625rem;
    line-height: 1.625;
    letter-spacing: 0.143em;
    font-weight: 700;
    text-transform: uppercase;
    color: hsl(0, 0%, 85%);
    background-image: linear-gradient(to right, hsl(153, 71%, 59%) 75%, hsl(153, 71%, 59%) 75%);
    background-position: 0 2.1em;
    background-repeat: repeat-x;
    cursor: pointer;
    align-self: flex-end;
}

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

.error {
    font-size: 0.875rem;
    color: hsl(0, 100%, 70%);
    margin-top: 0.5rem;
    min-height: 1em;
}



/* RING */
.ring-image {
    width: 100%;
    height: 150px;
    padding: 1rem;
    margin-left: -170px;
}

.ring-image img {
    height: 100%;
}

/* RESPONSIVENESS */
@media (max-width: 800px) {
    body {
        line-height: 1.4;
    }

    .container {
        padding: 1rem .8rem;
    }

    h1 {
        font-size: 3.5rem;
        line-height: 1;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: .75rem;
    }

    h3 {
        font-size: 1.2rem;
        margin-bottom: .5rem;
    }

    p {
        font-size: 1rem;
    }

    .curriculum-container .card {
        padding: 1rem;
    }

    .map {
        width: 100%;
        height: 450px;
    }

    .contact {
        flex-direction: column;
    }

    .ring-image {
        width: 500px;
        height: 130px;
        margin-top: 0;
    }

    .ring img {
        width: 70%;
        height: 70%;
    }
}

@media (max-width: 700px) {
    .contact-heading {
        margin-top: 70px;
    }

    .contact-text-and-image {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-image-cnt {
        padding: 1rem;
    }

    .form-container {
        margin-top: 50px;
        width: 90%;
        gap: 0;
    }

    #responseMessage {
        margin-top: 20px;
    }
}

@media (max-width: 500px) {
    .contact-inner .subtitle {
        font-size: 1rem;
    }

    body {
        line-height: 1.3;
    }

    h1 {
        font-size: 3rem;
        line-height: 1;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 1rem;
    }

    .btn {
        padding: .5rem .8rem;
        border-radius: 10px;
    }

    .ring {
        left: -150px;
    }

}


@media (max-width: 400px) {

    body {
        line-height: 1.3;
    }

    h1 {
        font-size: 2.5rem;
        line-height: 1;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 1rem;
    }

}