@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #101828;
}


/* GET IN TOUCH FORM SECTION */

.contact-container {
    display: flex;
    max-width: 1240px;
    margin: 60px auto;
    padding: 0 20px;
    gap: 40px;
    background: transparent;
    margin-bottom: 0px;
}

/* Left Side */
.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 3px transparent;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.details-cards {
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow:none;
}

.detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    background: #e0e7ff; /* Secondary 3 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-wrapper svg {
    stroke: #0f172a; /* Primary 9 */
}

.detail-text h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #101828;
}

.detail-text p {
    margin: 0;
    font-size: 14px;
    color: #475467;
}

/* Right Side - Form */
.enquiry-form-section {
    flex: 1.2;
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    padding: 40px;
    box-shadow:none;
    
}

.form-header {
    margin-bottom: 32px;
}

.form-header h2 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 600;
    color: #101828;
}

.form-header p {
    margin: 0;
    font-size: 16px;
    color: #475467;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
    position: relative;
    z-index: 1; 
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #344054;
}

/* Fix input bugs: make sure they are editable and clickable */
.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
    color: #101828;
    background-color: #fff;
    /* Critical fixes for unclickable inputs */
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
    opacity: 1;
    display: block;
    user-select: auto;
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #98a2b3;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #0f172a; /* Primary 9 */
    box-shadow: 0 0 0 4px #e0e7ff; /* Secondary 3 */
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23344054%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

.error-message {
    color: #d92d20;
    font-size: 14px;
    margin-top: 6px;
    display: none;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #d92d20;
}

.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
    box-shadow: 0 0 0 4px #fee4e2;
}

.form-group.has-error .error-message {
    display: block;
}

button[type="submit"] {
    background-color: #0f172a; /* Primary 9 */
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #1e293b; /* Primary 10 (approx) */
}

button[type="submit"]:disabled {
    background-color: #98a2b3;
    cursor: not-allowed;
}

.form-submitted .form-group,
.form-submitted button[type="submit"] {
    display: none !important;
}

.form-messages {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 8px;
    display: none;
    font-size: 14px;
    text-align: center;
}

.form-messages.success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    animation: fadeInScale 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.success-icon-large {
    width: 64px;
    height: 64px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px;
    box-shadow: 0 0 0 10px #d1fae5;
}

.form-messages.success h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
}

.form-messages.success p {
    margin: 0;
    font-size: 16px;
    color: #475467;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.form-messages.error {
    display: block;
    background-color: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}



/* Responsive Breakpoints */

/* Tablet & Smaller Laptops */
@media (max-width: 1024px) {
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }
    .contact-details, 
    .enquiry-form-section {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .contact-container {
        margin: 40px auto;
        padding: 0 16px;
        gap: 32px;
    }
    
    .enquiry-form-section {
        padding: 24px;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .details-cards {
        padding: 20px;
    }

    .faq-section {
        margin-top: 60px;
    }

    .faq-header {
        margin-bottom: 32px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .contact-container {
        margin: 32px auto;
        gap: 24px;
    }
    
    .enquiry-form-section {
        padding: 20px 16px;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .details-cards {
        padding: 16px;
        gap: 16px;
    }

    .faq-heading {
        font-size: 26px;
    }
}





/* FAQ SECTION */
:root{
  --ink:#0e1a16;
  --ink-soft:#4b5a55;
  --bg:#f5f7f6;
  --card:#ffffff;
  --border:#e2e8e5;
  --accent:#1462d1;
  --accent-soft:#e6f0fd;
  --accent-dark:#0d47a3;
  --radius:14px;
  --max-w:1240px;
  --shadow: 0 1px 2px rgba(14,26,22,0.04), 0 8px 24px -12px rgba(14,26,22,0.10);
}

.faq-section{
  width:100%;
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 20px 80px;
  margin-top: 100px;
}

/* Header */
.faq-header{
  text-align:left;
  max-width:100%;
  margin:0 0 32px;
}
.faq-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:16px;
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--accent-dark);
  background:var(--accent-soft);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:16px;
}
.faq-eyebrow::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
  display:inline-block;
}
.faq-heading{
  font-size:33px;
  line-height:1.15;
  font-weight:700;
  letter-spacing:-0.02em;
  margin:0 0 14px;
  margin-bottom: 16px;
  color:var(--ink);
}
.faq-desc{
  font-size:16px;
  line-height:1.6;
  color:var(--ink-soft);
  margin:0;
}

/* Grid */
.faq-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  align-items:start;
}

.faq-item{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:none;
  overflow:hidden;
  transition:border-color .25s ease, box-shadow .25s ease, transform .2s ease;
}
.faq-item:hover{
  border-color:#bcd6f7;
}
.faq-item.is-open{
  border-color:var(--accent);
  box-shadow:none;
}

.faq-question{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:transparent;
  border:none;
  text-align:left;
  cursor:pointer;
  padding:18px 20px;
  font-family:inherit;
  color:var(--ink);
}
.faq-question:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:-2px;
  border-radius:var(--radius);
}

.faq-question-text{
  font-size:16px;
  font-weight:600;
  line-height:1.45;
  letter-spacing:-0.005em;
}

.faq-icon{
  flex:0 0 auto;
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--accent-soft);
  color:var(--accent-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  transition:background .25s ease, transform .3s ease;
}
.faq-item.is-open .faq-icon{
  background:var(--accent);
  color:#fff;
  transform:rotate(180deg);
}
.faq-icon::before,
.faq-icon::after{
  content:"";
  position:absolute;
  background:currentColor;
  border-radius:1px;
}
.faq-icon::before{ width:12px; height:2px; }
.faq-icon::after{ width:2px; height:12px; transition:transform .25s ease, opacity .25s ease; }
.faq-item.is-open .faq-icon::after{ transform:rotate(90deg); opacity:0; }

.faq-answer{
  display:grid;
  grid-template-rows:0fr;
  opacity:0;
  transition:grid-template-rows .32s ease, opacity .28s ease;
}
.faq-item.is-open .faq-answer{
  grid-template-rows:1fr;
  opacity:1;
}
.faq-answer-inner{
  overflow:hidden;
}
.faq-answer-content{
  padding:0 20px 20px 20px;
  font-size:14.5px;
  line-height:1.7;
  color:var(--ink-soft);
  max-width:56ch;
}

@media (prefers-reduced-motion: reduce){
  .faq-item, .faq-icon, .faq-icon::after, .faq-answer{
    transition:none !important;
  }
}

/* Tablet */
@media (min-width:768px){
  .faq-section{ padding:0 28px 96px; }
  .faq-grid{
    grid-template-columns:1fr 1fr;
    column-gap:24px;
    row-gap:16px;
  }
  .faq-question-text{ font-size:16px; }
}

/* Laptop */
@media (min-width:1024px){
  .faq-section{ padding:0 32px 110px; }
  .faq-grid{ column-gap:28px; row-gap:18px; }
  .faq-header{ margin-bottom:56px; }
}

/* Desktop */
@media (min-width:1440px){
  .faq-section{ padding:0 0 120px; }
  .faq-grid{ column-gap:32px; row-gap:20px; }
}

/* CONTACT PAGE NAVBAR CLEARANCE
   Move the complete Contact section below the fixed navbar.
   Scoped so Concrete Experts remains unchanged even though it also loads this CSS. */
.page-contact {
    padding-top: 0 !important;
}

.page-contact .contact-container {
    margin-top: 100px !important;
}

@media (max-width: 1100px) {
    .page-contact .contact-container {
        margin-top: 78px !important;
    }
}

@media (max-width: 767px) {
    /* 1. Prevent horizontal overflow on the entire page */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* 2. Ensure elements don't overflow due to padding/borders */
    *, *::before, *::after {
        box-sizing: border-box !important;
    }

    /* 3. Fix fixed widths on contact container and FAQ section */
    .contact-container,
    .faq-section {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }
    
    .faq-header,
    .faq-grid,
    .faq-item,
    .faq-question,
    .faq-answer,
    .faq-answer-inner,
    .faq-answer-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 4. Allow question text to wrap naturally without overflowing */
    .faq-question-text {
        width: auto !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-right: 12px !important;
    }
}

/* Force exactly 32px gap below FAQ heading globally */
.faq-header {
    margin-bottom: 32px !important;
}
.faq-heading {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.faq-grid {
    margin-top: 0 !important;
}

@media (max-width: 767px) {
    /* Enforce exactly 48px gap between major sections in mobile view */
    .contact-container {
        margin-bottom: 48px !important;
        padding-bottom: 0 !important;
    }
    .faq-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 48px !important;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 767px) {
    .faq-heading {
        font-size: 28px !important;
    }
}

/* ================================
   TABLET RESPONSIVE ONLY
   768px - 1024px
================================ */
@media (min-width: 768px) and (max-width: 1024px) {
  .contact-container,
  .faq-section {
    width: 94% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
