
/* CONTACT PAGE — LUCYN TCL
   Visual language aligned with About
*/

.contact-header,
.contact-footer {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

.contact-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid #e8ebef;
}

.contact-header .brand img {
  display: block;
  width: 132px;
  height: auto;
}

.contact-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.contact-nav a {
  color: #101828;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-nav a:hover,
.contact-nav a[aria-current="page"] {
  color: #0875f9;
}

.contact-nav .nav-contact {
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: #0875f9;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.contact-nav .nav-contact:hover {
  background: #0063dd;
  color: #fff;
}

/* HERO */

.contact-hero {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 58px;
}

.contact-hero .eyebrow {
  display: block;
  margin-bottom: 18px;
  color: #0875f9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.contact-hero h1 {
  max-width: 650px;
  margin: 0 0 20px;
  color: #050505;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -1.8px;
  font-weight: 700;
}

.contact-hero h1 span {
  color: #0875f9;
}

.contact-intro {
  max-width: 480px;
  margin: 0;
  color: #737d8c;
  font-size: 15px;
  line-height: 1.85;
}


/* Contact form responsive layout */
.contact-main {
    width: min(100% - 40px, 760px);
    margin-inline: auto;
}

#contactForm {
    width: 100%;
    min-width: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.form-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 9px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #101828;
}

.form-field label span {
    color: #737d8c;
    font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid #e8ebef;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid #0875f9;
    outline-offset: 2px;
    border-color: #0875f9;
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
}

.form-submit p {
    flex: 1 1 220px;
    margin: 0;
    color: #737d8c;
    font-size: 12px;
    line-height: 1.7;
}

.form-submit button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: #0875f9;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

.form-submit button:hover {
    background: #0663d6;
}

.form-submit button:focus-visible {
    outline: 2px solid #101828;
    outline-offset: 3px;
}

.form-status {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.form-status:empty {
    display: none;
}

.form-status.is-error {
    color: #c62828;
}

/* Tablet and mobile */
@media (max-width: 640px) {
    .contact-main {
        width: calc(100% - 36px);
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin-bottom: 18px;
    }

    .form-submit {
        align-items: stretch;
        flex-direction: column;
    }

    .form-submit button {
        width: 100%;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .contact-main {
        width: calc(100% - 28px);
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        padding-inline: 11px;
    }
}



/* Responsive topic dropdown */
#subject {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 48px;
    padding: 0 36px 0 14px;
    border: 1px solid #e8ebef;
    border-radius: 8px;
    background-color: #fff;
    color: #101828;
    font-family: inherit;
    font-size: 14px;
    line-height: normal;
    cursor: pointer;
    box-sizing: border-box;
    appearance: auto;
    -webkit-appearance: menulist;
}

#subject option {
    white-space: normal;
    overflow-wrap: anywhere;
}

#subject:focus {
    outline: 2px solid #0875f9;
    outline-offset: 2px;
    border-color: #0875f9;
}

.form-row,
.form-field {
    min-width: 0;
}

@media (max-width: 640px) {
    #subject {
        width: 100%;
        font-size: 16px;
    }
}



/* Prevent the topic field from overflowing */
#subject {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-overflow: ellipsis;
    overflow: hidden;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
}

.form-field {
    min-width: 0;
    max-width: 100%;
}

.form-field select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    #subject {
        font-size: 16px;
    }
}
