

/* ========================================
   ONLINE ESTIMATE
======================================== */

#online-estimate-app{
  max-width:900px;
  margin:40px auto;
  padding:0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Noto Sans JP",
    sans-serif;
  background:#f5f7fa;
  border-radius:16px;
  overflow:hidden;
}

/* HEADER */

.estimate-header{
  padding:55px 30px;
  text-align:center;
  background:linear-gradient(
    135deg,
    #173a5e,
    #285b8c
  );
  color:#ffffff;
}

.estimate-badge{
  display:inline-block;
  padding:6px 16px;
  margin-bottom:15px;
  border:1px solid rgba(255,255,255,.6);
  border-radius:50px;
  font-size:12px;
  letter-spacing:2px;
}

.estimate-header h2{
  margin:0 0 15px;
  font-size:32px;
}

.estimate-header p{
  margin:0;
  opacity:.9;
}

/* SECTION */

.estimate-section{
  padding:35px;
  background:#ffffff;
  border-bottom:1px solid #e5e7eb;
}

.step-title{
  margin-bottom:25px;
  font-size:21px;
  font-weight:700;
  color:#173a5e;
}

.step-title span{
  display:inline-block;
  margin-right:10px;
  padding:5px 10px;
  background:#e7eff7;
  border-radius:5px;
  font-size:12px;
}

/* INPUT */

#online-estimate-app select,
#online-estimate-app input[type="number"]{
  width:100%;
  box-sizing:border-box;
  padding:13px;
  border:1px solid #ccd4dd;
  border-radius:6px;
  background:#ffffff;
  font-size:15px;
}

/* PLAN */

.plan-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
}

.plan-card{
  display:block;
  padding:25px 15px;
  border:2px solid #dbe2e8;
  border-radius:10px;
  text-align:center;
  cursor:pointer;
}

.plan-card:hover{
  border-color:#285b8c;
}

.plan-card:has(input:checked){
  border-color:#285b8c;
  background:#edf4fa;
}

.plan-card input{
  margin-bottom:12px;
}

.plan-name{
  font-size:20px;
  font-weight:bold;
  color:#173a5e;
}

.plan-description{
  margin-top:10px;
  font-size:13px;
  color:#666;
}

/* OPTION */

.option-box{
  margin-bottom:12px;
  border:1px solid #dfe4ea;
  border-radius:8px;
  overflow:hidden;
}

.option-main{
  display:flex;
  align-items:center;
  gap:10px;
  padding:17px;
  font-weight:600;
  cursor:pointer;
}

.option-main:hover{
  background:#f7f9fb;
}

.option-main input{
  width:18px;
  height:18px;
}

.option-detail{
  padding:20px;
  background:#f7f9fb;
  border-top:1px solid #e5e7eb;
}

.option-detail label{
  display:block;
  margin-bottom:15px;
  font-size:14px;
}

.option-help{
  font-size:13px;
  color:#666;
  line-height:1.8;
}

.hidden{
  display:none;
}

/* SIMPLE OPTIONS */

.simple-options{
  padding:10px 0;
}

.simple-options label{
  display:block;
  padding:15px;
  margin-bottom:8px;
  border:1px solid #dfe4ea;
  border-radius:7px;
  cursor:pointer;
}

/* RESULT */

.estimate-result{
  padding:50px 30px;
  text-align:center;
  background:#173a5e;
  color:#ffffff;
}

.result-label{
  font-size:12px;
  letter-spacing:3px;
  opacity:.7;
}

.estimate-result h2{
  margin:12px 0;
  font-size:22px;
}

.result-price{
  margin:20px 0;
  font-size:52px;
  font-weight:bold;
}

.result-monthly{
  margin-bottom:30px;
}

.result-detail{
  max-width:600px;
  margin:30px auto;
  padding:20px;
  text-align:left;
  background:rgba(255,255,255,.1);
  border-radius:8px;
  font-size:14px;
  line-height:1.9;
}

.estimate-warning{
  margin:25px 0;
  font-size:12px;
  opacity:.75;
  line-height:1.8;
}

#estimateButton{
  padding:16px 40px;
  border:none;
  border-radius:6px;
  background:#ffffff;
  color:#173a5e;
  font-size:16px;
  font-weight:bold;
  cursor:pointer;
}

/* MODAL */

.estimate-modal{
  display:none;
  position:fixed;
  z-index:99999;
  inset:0;
  padding:30px 15px;
  overflow-y:auto;
}

.estimate-modal.active{
  display:block;
}

.estimate-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(10,25,40,.72);
}

.estimate-modal-content{
  position:relative;
  z-index:2;
  width:100%;
  max-width:760px;
  margin:30px auto;
  padding:45px;
  box-sizing:border-box;
  background:#ffffff;
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
}

.estimate-modal-close{
  position:absolute;
  top:15px;
  right:18px;
  width:40px;
  height:40px;
  border:none;
  background:#f1f4f7;
  border-radius:50%;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

.estimate-modal-header{
  margin-bottom:35px;
  text-align:center;
}

.estimate-badge-dark{
  display:inline-block;
  padding:6px 14px;
  background:#173a5e;
  color:#ffffff;
  border-radius:30px;
  font-size:11px;
  letter-spacing:2px;
}

.estimate-modal-header h2{
  margin:15px 0 10px;
  font-size:28px;
  color:#173a5e;
}

.estimate-modal-header p{
  margin:0;
  color:#666;
}

/* FORM */

.contact-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.form-group{
  margin-bottom:22px;
}

.form-group label{
  display:block;
  margin-bottom:8px;
  font-weight:700;
  color:#333;
}

.required{
  margin-left:8px;
  padding:3px 7px;
  background:#d94c4c;
  color:#ffffff;
  border-radius:3px;
  font-size:10px;
}

.form-group input,
.form-group textarea{
  width:100%;
  box-sizing:border-box;
  padding:13px;
  border:1px solid #ccd4dd;
  border-radius:6px;
  font-size:15px;
  font-family:inherit;
}

.form-group textarea{
  resize:vertical;
}

/* SUMMARY */

.contact-estimate-summary{
  margin:35px 0;
  border:1px solid #d9e1e8;
  border-radius:10px;
  overflow:hidden;
}

.contact-summary-title{
  padding:14px 20px;
  background:#173a5e;
  color:#ffffff;
  font-weight:bold;
}

.contact-summary-detail{
  padding:20px;
  background:#f7f9fb;
  color:#444;
  line-height:2;
}

.contact-summary-total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px;
  border-top:1px solid #dfe4ea;
  background:#ffffff;
}

.contact-summary-total span{
  font-weight:bold;
}

.contact-summary-total strong{
  font-size:30px;
  color:#173a5e;
}

/* SEND BUTTON */

.send-estimate-button{
  width:100%;
  padding:18px;
  border:none;
  border-radius:7px;
  background:#173a5e;
  color:#ffffff;
  font-size:17px;
  font-weight:bold;
  cursor:pointer;
}

.send-estimate-button:disabled{
  opacity:.5;
  cursor:not-allowed;
}

/* SUCCESS */

.estimate-success-message{
  margin-top:25px;
  padding:25px;
  border-radius:10px;
  background:#eef8f1;
  color:#198754;
  text-align:center;
}

.estimate-number-box{
  margin:18px 0;
  padding:15px;
  background:#ffffff;
  border:1px solid #b7dfc5;
  border-radius:8px;
  color:#333;
}

.estimate-number-box strong{
  display:block;
  margin-top:8px;
  font-size:22px;
  color:#173a5e;
  letter-spacing:1px;
}

.estimate-form-message{
  margin-top:20px;
  text-align:center;
  font-size:14px;
}

/* MOBILE */

@media(max-width:700px){

  .estimate-section{
    padding:25px 18px;
  }

  .plan-grid{
    grid-template-columns:1fr;
  }

  .estimate-header h2{
    font-size:25px;
  }

  .result-price{
    font-size:40px;
  }

  .estimate-modal{
    padding:10px;
  }

  .estimate-modal-content{
    margin:10px auto;
    padding:35px 20px;
  }

  .contact-form-grid{
    grid-template-columns:1fr;
  }

  .estimate-modal-header h2{
    font-size:23px;
  }

  .contact-summary-total{
    display:block;
  }

  .contact-summary-total strong{
    display:block;
    margin-top:10px;
    font-size:26px;
  }

}

