/* cart and shop link optimisation start*/
@media (max-width: 35em) {
    .mobile-cart-link,
    .mobile-shop-link {
        display: block;
        position: absolute;     
        top: 2rem;
        width: 1.7rem;
        height: 1.7rem;
    }

    .mobile-cart-link {
        right: 4rem;
    }

    .mobile-shop-link {
        right: 7rem;
    }

    .mobile-cart-link img,
    .mobile-shop-link img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

@media (min-width: 35em) {
    .mobile-cart-link,
    .mobile-shop-link {
        display: none;
    }
}
/* cart and shop link optimisation end*/

/* =====================
   CONTACT PAGE STYLING
   ===================== */

:root {
  --text-primary: #1a1a1a;
  --text-secondary: #666;
  --bg-light: #f8f8f8;
  --border-subtle: #e8e8e8;
  --accent: #000;
}

body {
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  color: var(--text-primary);
}

main {
  padding: 3.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Intro Section */
.contact {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact h2 {
  font-size: 2.5rem;
  letter-spacing: 0.06em;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.contact h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.contact p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 1.5rem;
}

/* =====================
   FORM SECTION
   ===================== */

.contact-form-section {
    padding: 2rem 1rem 4rem 1rem;
    display: flex;
    justify-content: center;
    background: transparent;
}

.form-container {
    width: 100%;
    max-width: 520px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
}

/* mobile responsive tweaks for form container */
@media (max-width: 480px) {
    .form-container {
        padding: 0;
        max-width: 100%;
    }
}

/* Subtle background accent behind form */
.form-container::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 110%;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 16px;
  z-index: -1;
}

.form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.form-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-style: italic;
}

/* =====================
   FORM FIELDS
   ===================== */

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

input, textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

/* mobile responsive tweaks for form fields */
@media (max-width: 480px) {
    input, textarea {
        padding: 0.75rem 0.8rem;
        font-size: 0.95rem;
    }
}

input::placeholder, textarea::placeholder {
    color: #999;
}

textarea {
    height: 140px;
    resize: vertical;
    line-height: 1.5;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    background: #fff;
}

/* =====================
   ERROR & HELPER STATES
   ===================== */

input.invalid, textarea.invalid {
    border-color: #d32f2f;
    background-color: #fff8f8;
}

input.invalid:focus, textarea.invalid:focus {
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.error-message {
    color: #d32f2f;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: block;
    height: 1.2rem;
    font-weight: 500;
}

.helper-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    display: block;
    font-style: italic;
}

.character-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

/* =====================
   SUBMIT BUTTON
   ===================== */

.submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 2px solid var(--accent);
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.35s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.35s ease;
  z-index: 0;
}

.submit-btn:hover {
    background: #222;
    border-color: #222;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 768px) {
  .contact h2 {
    font-size: 2rem;
  }
  
  .form-container h2 {
    font-size: 1.5rem;
  }
  
  .contact p {
    font-size: 1rem;
  }
}

.footer-end {
    display: flex;
    justify-content: center;
    padding: 5%;
}
