/* Contact Page Title area*/
.contact-container { 
  width: 90%;
  margin: 3rem auto 1rem auto;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: maroon;
  text-align: center;
}

p.contact-title{
    text-align: center;
    font-size: clamp(1.2rem, 2vw, 2rem);
}


/* Area for contact and social media details */

.contact-global{
    width: 90%;
    margin: 1rem auto 1rem auto;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
}

.contact-social-area{
    display: flex;
    flex-direction: column;
    padding: 2rem;
    width: 100%;
    background-color: #F6F9FC;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.contact-details{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-social-area-title h3{
    font-size: 2rem;
    margin: 0;
}

.contact-details-item{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}


.contact-details-item h4{
    margin: 0;
}
.contact-details-item p{
    margin: 0;
}

.social-details{
    border-top: 1px solid rgb(211, 208, 208);
}

h4{
    font-size: 1.2rem;
}




/*Contact form section*/

/* --- Section Container --- */
.contact_form {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    width: 100%;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
}

/* --- Headline --- */
.contact_form h3 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* --- Success message from messaging framework --- */
.success {
    width: 90%;
    margin: 0 auto;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: fade-in 0.6s ease;
    text-align: center;
}

/* --- Error message from messaging framework --- */
.error {
    width: 90%;
    background-color: #f07a76;
    color: black;
    border: 1px solid #f07a76;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 0 auto 20px auto;
    font-weight: 500;
    animation: fade-in 0.6s ease;
    text-align: center;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Form --- */
.contact_form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- Inputs & Textarea --- */
.mandatory-field{
    color: red;
}

.field-error{
    color: red;
    font-style: italic;
    margin: 0;
}

.contact_form input[type="text"],
.contact_form input[type="email"],
.contact_form textarea {
    width: 100%;
    background-color: #F6F9FC;
    padding: 0.5rem 1.4rem;
    border-top: none;
    border-left: none;
    border-right: none;
    border: 1px solid #ccc;
    border-radius: 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact_form textarea {
    border: 1px solid #ccc;
}

.contact_form input[type="text"]:focus,
.contact_form input[type="email"]:focus,
.contact_form textarea:focus {
    border-color: maroon;
    background-color: #FFF;
    box-shadow: 0 0 5px rgba(240, 140, 0, 0.3);
    outline: none;
}

/* --- Textarea specifics --- */
.contact_form textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- Button --- */
.contact_form button {
    padding: 12px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact_form button:hover {
    background-color: #6dc9bc;
}

    /* ==========================
            Tablet & Up
    ========================== */
   
    @media (min-width: 768px) {
        /* Area for contact and social media details */
        .contact-global{
            flex-direction: row;
        }
        .contact-global{
            width: 70%;
            margin: 1rem auto 1rem auto;
        }
        .contact-social-area{
            width: 40%;
            background-color: #F6F9FC;
            border-top-left-radius: 15px;
            border-bottom-left-radius: 15px;
            border-top-right-radius: 0;
        }

        /* --- Contact Form Area --- */
        .contact_form {
            width: 60%;
            border-top-right-radius: 15px;
            border-bottom-right-radius: 15px;
            border-bottom-left-radius: 0;
        }

        /* --- Success message from messaging framework --- */
        .success {
            width: 70%;
        }
        .error {
            width: 70%;
        }

    }

    