/* ==========================================================================
   COFFEE PROPOSAL — ENTERPRISE REFINED EDITION
   Fully Responsive | Dark/Light Perfected | Symmetrical Layout System
   Designed to align with core.css variables & philosophy
   ========================================================================== */


/* ==========================================================================
   SECTION FOUNDATION
   ========================================================================== */

   .coffee-proposal {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 6rem);
    background:
      radial-gradient(circle at 15% 20%, rgba(37,99,235,0.05), transparent 40%),
      linear-gradient(135deg, var(--clr-bg) 0%, #f8fafc 100%);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    transition: background 0.4s ease, border-color 0.4s ease;
  }
  
  :root[data-theme="dark"] .coffee-proposal {
    background:
      radial-gradient(circle at 20% 20%, rgba(37,99,235,0.15), transparent 50%),
      linear-gradient(135deg, #0b1220 0%, #0f172a 100%);
  }
  
  
  /* ==========================================================================
     GRID LAYOUT — PERFECT BALANCE
     ========================================================================== */
  
  .coffee-proposal__grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
  }
  
  /* Tablet */
  @media (max-width: 1024px) {
    .coffee-proposal__grid {
      grid-template-columns: 1fr;
      text-align: center;
    }
  }
  
  /* Ultra-wide / TV scaling */
  @media (min-width: 1800px) {
    .coffee-proposal__grid {
      max-width: 1600px;
      gap: 8rem;
    }
  }
  
  
  /* ==========================================================================
     LEFT CONTENT
     ========================================================================== */
  
  .coffee-proposal__content {
    max-width: 640px;
  }
  
  @media (max-width: 1024px) {
    .coffee-proposal__content {
      margin: 0 auto;
    }
  }
  
  .coffee-proposal__content h2 {
    font-size: clamp(2.2rem, 3vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
  }
  
  .coffee-proposal__lead {
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    opacity: 0.9;
  }
  
  
  /* ==========================================================================
     HIGHLIGHTS GRID
     ========================================================================== */
  
  .coffee-proposal__highlights {
    display: grid;
    gap: 1.75rem;
    margin-bottom: 2.75rem;
  }
  
  .proposal-highlight {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  }
  
  .proposal-highlight:hover {
    background: rgba(37,99,235,0.06);
    border-color: rgba(37,99,235,0.15);
    transform: translateY(-4px);
  }
  
  :root[data-theme="dark"] .proposal-highlight:hover {
    background: rgba(37,99,235,0.12);
    border-color: rgba(37,99,235,0.25);
  }
  
  .proposal-highlight i {
    font-size: 1.4rem;
    color: var(--clr-primary);
    margin-top: 4px;
    flex-shrink: 0;
  }
  
  .proposal-highlight h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }
  
  .proposal-highlight p {
    font-size: 0.95rem;
    opacity: 0.85;
  }
  
  
  /* ==========================================================================
     CTA BUTTON
     ========================================================================== */
  
  .coffee-proposal__cta .btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  
  .coffee-proposal__cta .btn--large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
  
  
  /* ==========================================================================
     FORM WRAPPER
     ========================================================================== */
  
  .coffee-proposal__form-wrapper {
    display: flex;
    justify-content: center;
  }
  
  .coffee-proposal__form {
    width: 100%;
    max-width: 480px;
    background: var(--clr-bg);
    padding: clamp(2rem, 4vw, 2.75rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-lg);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.4s ease;
  }
  
  .coffee-proposal__form:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  }
  
  :root[data-theme="dark"] .coffee-proposal__form {
    background: #111827;
    border-color: #1f2937;
  }
  
  :root[data-theme="dark"] .coffee-proposal__form:hover {
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  }
  
  .coffee-proposal__form h3 {
    text-align: center;
    font-size: 1.35rem;
    margin-bottom: 1.8rem;
  }
  
  
  /* ==========================================================================
     FORM FIELDS
     ========================================================================== */
  
  .form-group {
    position: relative;
    margin-bottom: 1.75rem;
  }
  
  .form-group input,
  .form-group select {
    width: 100%;
    padding: 0.95rem 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    font-size: 0.95rem;
    font-family: inherit;
    background: transparent;
    color: var(--clr-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  }
  
  .form-group input:focus,
  .form-group select:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
  }
  
  :root[data-theme="dark"] .form-group input,
  :root[data-theme="dark"] .form-group select {
    background: rgba(255,255,255,0.04);
    border-color: #374151;
  }
  
  
  /* Floating Labels */
  
  .form-group label {
    position: absolute;
    left: 0.85rem;
    top: 0.95rem;
    font-size: 0.85rem;
    opacity: 0.6;
    pointer-events: none;
    transition: all 0.2s ease;
  }
  
  .form-group input:focus + label,
  .form-group input:not(:placeholder-shown) + label,
  .form-group select:focus + label,
  .form-group select:valid + label {
    top: -0.6rem;
    left: 0.7rem;
    font-size: 0.7rem;
    padding: 0 0.35rem;
    background: var(--clr-bg);
    opacity: 1;
  }
  
  :root[data-theme="dark"] .form-group input:focus + label,
  :root[data-theme="dark"] .form-group input:not(:placeholder-shown) + label,
  :root[data-theme="dark"] .form-group select:focus + label,
  :root[data-theme="dark"] .form-group select:valid + label {
    background: #111827;
  }
  
  
  /* ==========================================================================
     SUBMIT BUTTON
     ========================================================================== */
  
  .btn--block {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  
  .btn--block:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
  
  
  /* ==========================================================================
     DISCLAIMER
     ========================================================================== */
  
  .form-disclaimer {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
    line-height: 1.5;
  }
  
  
  /* ==========================================================================
     REVEAL ANIMATION
     ========================================================================== */
  
  .coffee-proposal__content,
  .coffee-proposal__form-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .coffee-proposal.is-visible .coffee-proposal__content,
  .coffee-proposal.is-visible .coffee-proposal__form-wrapper {
    opacity: 1;
    transform: translateY(0);
  }
  
  
  /* ==========================================================================
     MOBILE OPTIMIZATION
     ========================================================================== */
  
  @media (max-width: 640px) {
  
    .coffee-proposal {
      padding: 3.5rem 1.25rem;
    }
  
    .coffee-proposal__form {
      padding: 1.75rem;
    }
  
    .coffee-proposal__content h2 {
      font-size: 1.9rem;
    }
  
    .coffee-proposal__lead {
      font-size: 1rem;
    }
  
    .proposal-highlight {
      padding: 1rem;
    }
  }
  
  
  /* ==========================================================================
     GLOBAL TRANSITION POLISH
     ========================================================================== */
  
  .coffee-proposal,
  .coffee-proposal__form,
  .proposal-highlight,
  .form-group input,
  .form-group select,
  .form-group label {
    transition:
      background 0.35s ease,
      color 0.35s ease,
      border-color 0.35s ease,
      box-shadow 0.35s ease,
      transform 0.35s ease;
  }



  /* ==========================================================================
   REQUEST COFFEE DEPLOYMENT — LAYOUT REFINEMENT PATCH
   Improves spacing, symmetry, and professional alignment
   Append Only
   ========================================================================== */


/* --------------------------------------
   Form Card Layout Correction
-------------------------------------- */

.coffee-proposal__form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0; /* controlled spacing below */
}

/* --------------------------------------
   Header Spacing Precision
-------------------------------------- */

.coffee-proposal__form h3 {
  margin-bottom: 2.25rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}


/* --------------------------------------
   Form Field Vertical Rhythm
-------------------------------------- */

.coffee-proposal__form .form-group {
  margin-bottom: 1.75rem;
}

.coffee-proposal__form .form-group:last-of-type {
  margin-bottom: 2.25rem; /* breathing room before button */
}


/* --------------------------------------
   Input Interior Spacing Refinement
-------------------------------------- */

.form-group input,
.form-group select {
  height: 52px;
}


/* --------------------------------------
   Floating Label Adjustment
-------------------------------------- */

.form-group label {
  top: 1rem;
  left: 1rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label {
  top: -0.65rem;
  left: 0.85rem;
}


/* --------------------------------------
   Button Spacing & Balance
-------------------------------------- */

.coffee-proposal__form .btn--block {
  margin-top: 0.5rem;
  height: 54px;
  font-weight: 600;
}


/* --------------------------------------
   Disclaimer Alignment
-------------------------------------- */

.coffee-proposal__form .form-disclaimer {
  margin-top: 1.5rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}


/* --------------------------------------
   Mobile Fine Tuning
-------------------------------------- */

@media (max-width: 640px) {

  .coffee-proposal__form {
    padding: 2rem 1.5rem;
  }

  .coffee-proposal__form h3 {
    margin-bottom: 1.75rem;
  }

  .coffee-proposal__form .form-group {
    margin-bottom: 1.5rem;
  }

  .coffee-proposal__form .form-group:last-of-type {
    margin-bottom: 2rem;
  }

}


/* --------------------------------------
   Ultra-Wide / TV Enhancement
-------------------------------------- */

@media (min-width: 1800px) {

  .coffee-proposal__form {
    max-width: 520px;
    padding: 3rem;
  }

  .coffee-proposal__form h3 {
    font-size: 1.5rem;
  }

  .coffee-proposal__form .btn--block {
    font-size: 1.05rem;
  }

}


/* --------------------------------------
   Dark Mode Precision Adjustments
-------------------------------------- */

:root[data-theme="dark"] .coffee-proposal__form h3 {
  color: var(--clr-text);
}

:root[data-theme="dark"] .coffee-proposal__form .form-disclaimer {
  opacity: 0.6;
}



/* ==========================================================================
   SELECT FIELD — PROFESSIONAL FLOAT FIX
   Resolves overlapping text issue
   ========================================================================== */

   .form-group--select {
    position: relative;
  }
  
  /* Ensure select has enough internal space */
  .form-group--select select {
    height: 56px;
    appearance: none;
    cursor: pointer;
  }
  
  /* Keep label positioned properly */
  .form-group--select label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.85rem;
    opacity: 0.65;
    pointer-events: none;
    transition: all 0.2s ease;
  }
  
  /* Float label when select has value (modern browsers) */
  .form-group--select:has(select:not([value=""])) label,
  .form-group--select select:focus + label {
    top: -1.1rem;
    left: 0.2rem;
    font-size: 0.7rem;
    padding: 0 0.35rem;
    opacity: 1;
  }
  
  /* Dark mode background fix */
  :root[data-theme="dark"] .form-group--select:has(select:not([value=""])) label,
  :root[data-theme="dark"] .form-group--select select:focus + label {
    background: #111827;
  }
  
  /* Improve arrow alignment */
  .form-group--select select {
    background-image:
      linear-gradient(45deg, transparent 50%, var(--clr-text) 50%),
      linear-gradient(135deg, var(--clr-text) 50%, transparent 50%);
    background-position:
      calc(100% - 20px) calc(50% - 3px),
      calc(100% - 15px) calc(50% - 3px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
  }