/* =========================================================
   BABYFAYRE CONTACT PAGE
   ========================================================= */


/* ---------------------------------------------------------
   MAIN PAGE
   --------------------------------------------------------- */

.contact-page {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 40px 20px 70px;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   FONT WEIGHT
   --------------------------------------------------------- */

.contact-page,
.contact-page * {
    font-weight: 400;
}

.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page strong,
.contact-page label {
    font-weight: 700;
}


/* ---------------------------------------------------------
   PAGE HEADER
   --------------------------------------------------------- */

.contact-header {
    text-align: center;

    max-width: 800px;

    margin: 0 auto 45px;
}

.contact-label {
    display: inline-block;

    padding: 7px 16px;

    margin-bottom: 15px;

    border-radius: 20px;

    background: #f2f2f2;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.contact-header h1 {
    margin: 0 0 15px;

    font-size: clamp(38px, 6vw, 58px);

    line-height: 1.1;
}

.contact-header p {
    margin: 0 auto;

    max-width: 650px;

    font-size: 19px;

    line-height: 1.7;
}


/* ---------------------------------------------------------
   TWO COLUMN LAYOUT
   --------------------------------------------------------- */

.contact-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(300px, 0.65fr);

    gap: 30px;

    align-items: start;
}


/* ---------------------------------------------------------
   FORM BOX
   --------------------------------------------------------- */

.contact-box {
    width: 100%;

    padding: 35px;

    box-sizing: border-box;

    border: 1px solid #ddd;

    border-radius: 16px;

    background: #fff;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.06);
}


/* ---------------------------------------------------------
   FORM HEADER
   --------------------------------------------------------- */

.contact-box-header {
    margin-bottom: 25px;
}

.contact-box-header h2 {
    margin: 0 0 8px;

    font-size: 30px;
}

.contact-box-header p {
    margin: 0;

    line-height: 1.6;

    color: #555;
}


/* ---------------------------------------------------------
   SUCCESS MESSAGE
   --------------------------------------------------------- */

.contact-success,
.contact-error {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 25px;

    padding: 15px;

    border-radius: 10px;

    line-height: 1.5;
}

.contact-success {
    border: 1px solid #b7d9c0;
    background: #f1faf3;
}

.contact-error {
    border: 1px solid #e0b7b7;
    background: #fff4f4;
}

.message-icon {
    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #eee;

    font-weight: 700;
}

.contact-success strong,
.contact-error strong {
    display: block;

    margin-bottom: 3px;
}

.contact-success p,
.contact-error p {
    margin: 0;
}


/* ---------------------------------------------------------
   FORM
   --------------------------------------------------------- */

.contact-form {
    width: 100%;
}


/* ---------------------------------------------------------
   HONEYPOT
   --------------------------------------------------------- */

.honeypot {
    position: absolute;

    left: -9999px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}


/* ---------------------------------------------------------
   FORM GROUP
   --------------------------------------------------------- */

.form-group {
    width: 100%;

    margin-bottom: 22px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 16px;
}

.form-group label span {
    color: #777;

    font-weight: 400;
}


/* ---------------------------------------------------------
   INPUTS
   --------------------------------------------------------- */

.form-group input,
.form-group textarea {
    display: block;

    width: 100%;

    padding: 13px 14px;

    box-sizing: border-box;

    border: 1px solid #ccc;

    border-radius: 8px;

    background: #fff;

    color: #222;

    font-family: inherit;

    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input {
    height: 48px;
}

.form-group textarea {
    min-height: 170px;

    resize: vertical;

    line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #777;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.06);
}


/* ---------------------------------------------------------
   CHARACTER NOTE
   --------------------------------------------------------- */

.character-note {
    margin-top: 6px;

    text-align: right;

    font-size: 12px;

    color: #777;
}


/* ---------------------------------------------------------
   BUTTON
   --------------------------------------------------------- */

.contact-button {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    width: 100%;

    min-height: 52px;

    padding: 12px 20px;

    border: none;

    border-radius: 8px;

    background: #212529;

    color: #fff;

    font-family: inherit;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.contact-button:hover {
    background: #000;

    transform: translateY(-1px);
}

.contact-button span {
    font-size: 20px;

    font-weight: 700;
}


/* ---------------------------------------------------------
   PRIVACY NOTE
   --------------------------------------------------------- */

.privacy-note {
    margin: 15px 0 0;

    text-align: center;

    font-size: 12px;

    line-height: 1.5;

    color: #777;
}


/* ---------------------------------------------------------
   RIGHT HAND INFORMATION
   --------------------------------------------------------- */

.contact-info {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* ---------------------------------------------------------
   INFORMATION CARDS
   --------------------------------------------------------- */

.info-card {
    padding: 25px;

    border: 1px solid #ddd;

    border-radius: 14px;

    background: #fff;
}

.info-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 15px;

    border-radius: 50%;

    background: #f3f3f3;

    font-size: 23px;
}

.info-card h2,
.info-card h3 {
    margin: 0 0 10px;

    font-size: 22px;

    line-height: 1.3;
}

.info-card p {
    margin: 0;

    line-height: 1.65;

    color: #555;
}


/* ---------------------------------------------------------
   EMAIL
   --------------------------------------------------------- */

.contact-email {
    display: inline-block;

    margin-top: 12px;

    color: #222;

    font-weight: 700;

    text-decoration: none;

    word-break: break-word;
}

.contact-email:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   CONTACT LIST
   --------------------------------------------------------- */

.contact-list {
    margin: 15px 0 0;

    padding: 0;

    list-style: none;
}

.contact-list li {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-bottom: 11px;

    line-height: 1.5;
}

.contact-list li:last-child {
    margin-bottom: 0;
}

.contact-list li span {
    flex-shrink: 0;

    font-weight: 700;
}


/* ---------------------------------------------------------
   GUIDE CARD
   --------------------------------------------------------- */

.guide-card {
    background: #f8f8f8;
}

.guide-link {
    display: inline-block;

    margin-top: 18px;

    color: #222;

    text-decoration: none;

    font-weight: 700;
}

.guide-link:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   BOTTOM MESSAGE
   --------------------------------------------------------- */

.contact-bottom {
    margin-top: 35px;

    padding: 35px 25px;

    border-radius: 16px;

    background: #f7f7f7;

    text-align: center;
}

.contact-bottom span {
    display: block;

    margin-bottom: 10px;

    font-size: 32px;
}

.contact-bottom h2 {
    margin: 0 0 10px;

    font-size: 27px;
}

.contact-bottom p {
    max-width: 650px;

    margin: 0 auto;

    line-height: 1.7;

    color: #555;
}


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


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 850px) {

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-info {
        display: grid;

        grid-template-columns: 1fr 1fr;
    }

    .intro-card {
        grid-column: 1 / -1;
    }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {

    .contact-page {
        padding: 25px 15px 50px;
    }

    .contact-header {
        margin-bottom: 30px;
    }

    .contact-header h1 {
        font-size: 38px;
    }

    .contact-header p {
        font-size: 17px;
    }

    .contact-box {
        padding: 25px 20px;

        border-radius: 12px;
    }

    .contact-box-header h2 {
        font-size: 26px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .intro-card {
        grid-column: auto;
    }

    .info-card {
        padding: 22px;
    }

    .contact-bottom {
        padding: 30px 20px;
    }

}


/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 400px) {

    .contact-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .contact-header h1 {
        font-size: 34px;
    }

    .contact-box {
        padding: 22px 16px;
    }

    .form-group input {
        height: 46px;
    }

    .form-group textarea {
        min-height: 150px;
    }

}