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

.contact-page{

  background:
    linear-gradient(
      rgba(78,165,219,.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(78,165,219,.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #d0eaf7 50%,
      #ffffff 100%
    );

  background-size:
    42px 42px,
    42px 42px,
    auto;

  overflow:hidden;
}

/* ==================================
   HERO
================================== */

.contact-hero{

  padding:120px 20px 80px;
  text-align:center;
  position:relative;
}

.contact-hero-content{

  max-width:900px;
  margin:auto;
}

.contact-tag{

  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:10px 22px;

  border-radius:999px;

  background:
    rgba(78,165,219,.12);

  color:
    rgb(17,104,210);

  font-size:.9rem;
  font-weight:700;
  letter-spacing:.08em;
}

.contact-hero h1{

  margin-top:25px;

  font-size:
    clamp(2.8rem,6vw,5rem);

  font-weight:900;

  line-height:1.1;

  color:
    rgb(27,57,93);
}

.contact-hero h1 span{

  color:
    rgb(78,165,219);
}

.contact-hero p{

  max-width:760px;

  margin:25px auto 0;

  font-size:1.1rem;

  color:#55657c;

  line-height:1.9;
}

/* ==================================
   MAIN LAYOUT
================================== */

.contact-wrapper{

  max-width:1300px;

  margin:auto;

  padding:0 20px 100px;

  display:grid;

  grid-template-columns:
    420px 1fr;

  gap:35px;
}

/* ==================================
   LEFT CARD
================================== */

.contact-info-card{

  padding:40px;

  border-radius:30px;

  background:
    rgba(255,255,255,.85);

  backdrop-filter:
    blur(16px);

  border:
    1px solid rgba(17,104,210,.08);

  box-shadow:
    0 20px 50px rgba(17,104,210,.08);

  height:fit-content;
}

.contact-info-card h2{

  font-size:2rem;
  font-weight:800;

  color:
    rgb(27,57,93);

  margin-bottom:20px;
}

.contact-info-card p{

  color:#5d6b7b;
  line-height:1.8;
}

.contact-highlights{

  display:grid;

  grid-template-columns:
    repeat(3,1fr);

  gap:15px;

  margin:35px 0;
}

.contact-highlights div{
  text-align:center;
  padding:18px;
  border-radius:18px;
  background: rgba(17, 104, 210, 0.03);
  border: 1px solid rgba(17, 104, 210, 0.05);
  transition: all .3s ease;
}

.contact-highlights div:hover {
  transform: translateY(-4px);
  background: rgba(17, 104, 210, 0.06);
  border-color: rgba(17, 104, 210, 0.12);
  box-shadow: 0 8px 16px rgba(17, 104, 210, 0.05);
}

.contact-highlights h3{
  margin:0;
  color:
    rgb(17,104,210);
  font-size:1.8rem;
  font-weight:800;
}

.contact-highlights span{
  font-size:.85rem;
  color:#67758a;
}

.contact-details{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.contact-detail{
  display: flex;
  align-items: center;
  gap: 12px;
  padding:18px 20px;
  border-radius:16px;
  background: rgba(17, 104, 210, 0.03);
  border: 1px solid rgba(17, 104, 210, 0.05);
  font-weight:600;
  color: rgb(27,57,93);
  text-decoration: none;
  transition: all .3s ease;
}

.contact-detail:hover {
  transform: translateX(6px);
  background: rgba(17, 104, 210, 0.06);
  border-color: rgba(17, 104, 210, 0.12);
  color: rgb(17,104,210);
}

/* ==================================
   FORM CARD
================================== */

.contact-form-card{

  background:
    rgba(255,255,255,.88);

  backdrop-filter:
    blur(18px);

  border-radius:32px;

  padding:45px;

  border:
    1px solid rgba(17,104,210,.08);

  box-shadow:
    0 25px 60px rgba(17,104,210,.08);
}

.contact-form-card h2{

  margin-bottom:30px;

  font-size:2rem;
  font-weight:800;

  color:
    rgb(27,57,93);
}

/* ==================================
   FORM
================================== */

.form-row{

  display:grid;

  grid-template-columns:
    repeat(2,1fr);

  gap:20px;
}

.form-group{

  margin-bottom:22px;
}

.form-group label{

  display:block;

  margin-bottom:10px;

  color:
    rgb(27,57,93);

  font-weight:700;
}

/* Form Controls and Typography Inheritance */
.contact-page input,
.contact-page select,
.contact-page textarea,
.contact-page button {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea{
  width:100%;
  border: 1px solid rgba(17, 104, 210, 0.08);
  border-radius:16px;
  background: rgb(248, 250, 252);
  padding:16px 18px;
  font-size:15px;
  color: var(--sky-text);
  transition: all .3s ease;
}

/* Custom Dropdown Arrow */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231168d2' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline:none;
  background:#fff;
  border-color: var(--sky-azure);
  box-shadow: 0 0 0 4px rgba(79, 177, 221, 0.18);
}

/* Error Text & States */
.error-text {
  display: block;
  color: #e02424;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 6px;
  margin-left: 4px;
}

.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
  border: 1px solid #e02424 !important;
  background-color: rgba(224, 36, 36, 0.02) !important;
  box-shadow: 0 0 0 4px rgba(224, 36, 36, 0.12) !important;
}

/* ==================================
   BUDGET GRID
   ================================== */

.budget-grid{
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap:15px;
}

.budget-option{
  cursor:pointer;
}

.budget-option input{
  display:none;
}

.budget-option span{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  border-radius:16px;
  background: rgb(248, 250, 252);
  border: 1px solid rgba(17, 104, 210, 0.08);
  font-weight:700;
  color: rgb(27,57,93);
  transition: all .3s ease;
}

.budget-option:hover span{
  background: rgba(78,165,219,.12);
  border-color: rgba(78,165,219,.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(17,104,210,.05);
}

.budget-option input:checked + span{
  background: linear-gradient(135deg, rgb(17,104,210), rgb(78,165,219));
  border-color: transparent;
  color:#fff;
  box-shadow: 0 10px 20px rgba(17,104,210,.18);
}

/* ==================================
   BUTTON
================================== */

.contact-submit-btn{

  width:100%;

  border:none;

  padding:18px;

  border-radius:999px;

  font-size:1rem;
  font-weight:700;

  cursor:pointer;

  color:#fff;

  background:
    linear-gradient(
      135deg,
      rgb(17,104,210),
      rgb(78,165,219)
    );

  transition:.3s ease;

  box-shadow:
    0 20px 40px rgba(17,104,210,.25);
}

.contact-submit-btn:hover{

  transform:
    translateY(-4px);

  box-shadow:
    0 30px 60px rgba(17,104,210,.35);
}
/* ==================================
   CONSULTATION STEPS
================================== */

.consultation-steps {
  margin-top: 30px;
  border-top: 1px solid rgba(17,104,210,0.08);
  padding-top: 25px;
}

.consultation-steps h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: rgb(27,57,93);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.consultation-steps ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.consultation-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #5d6b7b;
  line-height: 1.5;
}

.consultation-steps .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(17,104,210,0.08);
  color: rgb(17,104,210);
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.consultation-steps strong {
  color: rgb(27,57,93);
}

/* ==================================
   TABLET (768px to 991px)
   ================================== */

@media(max-width:991px){

  .contact-wrapper{
    grid-template-columns:1fr;
    max-width: 760px;
    margin: 0 auto;
    gap: 30px;
  }

  .contact-info-card{
    order:2;
  }

  .contact-form-card{
    order:1;
  }
}

/* ==================================
   MOBILE (<= 576px)
   ================================== */

@media(max-width:576px){

  .contact-hero{
    padding:80px 16px 40px;
  }

  .contact-hero h1{
    font-size: 2.2rem;
  }

  .contact-hero p{
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 15px;
  }

  .contact-wrapper{
    padding:0 16px 60px;
  }

  .contact-form-card,
  .contact-info-card{
    padding:24px 20px;
    border-radius: 24px;
  }

  .form-row{
    grid-template-columns:1fr;
    gap: 0;
  }

  .budget-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .budget-option span {
    min-height: 50px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .contact-highlights{
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 25px 0;
  }
  
  .contact-highlights div {
    padding: 12px 6px;
    border-radius: 14px;
  }
  
  .contact-highlights h3 {
    font-size: 1.4rem;
  }
  
  .contact-highlights span {
    font-size: 0.72rem;
    line-height: 1.2;
    display: block;
    margin-top: 4px;
  }
  
  .contact-detail {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
  }
}

/* Extra Small Devices */
@media(max-width:380px){
  .budget-grid {
    grid-template-columns: 1fr;
  }
  .contact-highlights {
    grid-template-columns: 1fr;
  }
}