/* =========================
   HERO
========================= */

.contact-hero{
padding:50px 20px 24px;
text-align:center;
background:linear-gradient(180deg,#ffffff,#f4f8ff);
}

.contact-hero h1{
font-size:34px;
margin-bottom:10px;
color:#1c1c1c;
}

.contact-hero p{
font-size:15px;
color:#5f6b7a;
}

/* =========================
   CONTACT CARDS
========================= */

.contact-cards{
padding:32px 20px;
background:#ffffff;
}

.grid-3{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
max-width:1100px;
margin:auto;
}

.contact-card{
background:rgba(255,255,255,0.6);
backdrop-filter:blur(10px);
border-radius:18px;
padding:30px;
text-align:center;
border:1px solid rgba(30,120,255,0.15);
box-shadow:0 10px 30px rgba(0,0,0,0.06);
transition:.25s;
text-decoration:none;
color:inherit;
display:block;
}

.contact-card-button{
width:100%;
font:inherit;
cursor:pointer;
}

.contact-card:hover{
transform:translateY(-6px);
box-shadow:0 18px 40px rgba(0,0,0,0.1);
}

.contact-icon{
width:60px;
height:60px;
margin:auto;
margin-bottom:15px;
border-radius:16px;
display:flex;
align-items:center;
justify-content:center;
font-size:26px;
color:#1e78ff;
background:linear-gradient(135deg,rgba(30,120,255,.15),rgba(0,200,180,.15));
}

/* =========================
   FORM + MAP
========================= */

.contact-form-section{
padding:42px 20px;
background:#f8fbff;
}

.contact-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
max-width:1100px;
margin:auto;
}

/* =========================
   FORM BOX
========================= */

.contact-form-box{
background:rgba(255,255,255,0.8);
backdrop-filter:blur(14px);
padding:40px;
border-radius:20px;
box-shadow:0 20px 50px rgba(0,0,0,0.08);
}

/* =========================
   TABS
========================= */

.form-tabs{
display:flex;
gap:12px;
margin-bottom:25px;
background:#eef3ff;
padding:6px;
border-radius:12px;
}

.tab-btn{
flex:1;
padding:12px;
border:none;
border-radius:10px;
background:transparent;
color:#1e78ff;
font-weight:600;
cursor:pointer;
transition:.3s;
}

.tab-btn.active{
background:linear-gradient(90deg,#1e78ff,#00c8b4);
color:#fff;
box-shadow:0 8px 20px rgba(30,120,255,.3);
}

/* =========================
   FORM SWITCH (FIXED)
========================= */

.form-box{
display:none;
}

.form-box.active{
display:block;
}

/* =========================
   FORM SPACING SYSTEM ✅
========================= */

.form-group{
margin-bottom:18px;
}

/* =========================
   INPUT DESIGN
========================= */

.form-group input,
.form-group select,
.form-group textarea{
width:100%;
padding:16px;
border-radius:12px;
border:1px solid #e0e0e0;
font-size:15px;
background:#fff;
box-sizing:border-box;
transition:.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
outline:none;
border-color:#1e78ff;
box-shadow:0 0 0 3px rgba(30,120,255,.15);
}

/* =========================
   TEXTAREA
========================= */

.form-group textarea{
min-height:140px;
resize:none;
}

/* =========================
   BUTTONS
========================= */

.form-group button{
width:100%;
padding:14px;
border:none;
border-radius:12px;
font-size:16px;
font-weight:600;
color:#fff;
cursor:pointer;
transition:.25s;
}

/* Loan Button */
#loanForm button{
background:linear-gradient(90deg,#1e78ff,#00c8b4);
box-shadow:0 10px 25px rgba(30,120,255,.3);
}

/* Support Button */
#supportForm button{
background:linear-gradient(90deg,#ff7a00,#ffb347);
box-shadow:0 10px 25px rgba(255,122,0,.3);
}

.form-group button:hover{
transform:translateY(-2px);
}

/* =========================
   MAP
========================= */

.contact-map iframe{
width:100%;
height:100%;
min-height:420px;
border-radius:20px;
border:none;
box-shadow:0 20px 50px rgba(0,0,0,0.08);
}

.loaded-map-wrap{
position:relative;
min-height:420px;
border-radius:20px;
overflow:hidden;
box-shadow:0 20px 50px rgba(0,0,0,0.08);
}

.loaded-map-wrap iframe{
display:block;
box-shadow:none;
border-radius:20px;
}

.loaded-map-actions{
position:absolute;
left:16px;
right:16px;
bottom:16px;
display:flex;
gap:10px;
justify-content:flex-end;
pointer-events:none;
padding:10px;
border-radius:20px;
background:rgba(255,255,255,.9);
border:1px solid rgba(11,60,111,.12);
box-shadow:0 18px 42px rgba(15,35,70,.18);
backdrop-filter:blur(14px);
}

.loaded-map-actions button{
pointer-events:auto;
border:none;
border-radius:999px;
min-height:44px;
padding:0 18px;
font-weight:800;
font-size:14px;
cursor:pointer;
letter-spacing:0;
transition:transform .2s ease, box-shadow .2s ease;
}

.loaded-map-actions button:hover{
transform:translateY(-2px);
}

.loaded-map-actions .map-open-btn{
color:#0b3c6f;
background:#fff;
border:1px solid rgba(11,60,111,.18);
box-shadow:0 10px 24px rgba(5,18,38,.12);
}

.loaded-map-actions .map-directions-btn{
color:#fff;
background:linear-gradient(135deg,#ff7a00,#ff9a3d);
box-shadow:0 14px 28px rgba(255,122,0,.26);
}

.map-placeholder{
min-height:420px;
border-radius:20px;
border:1px solid rgba(30,120,255,0.15);
background:linear-gradient(145deg,#ffffff,#eef5ff);
box-shadow:0 20px 50px rgba(0,0,0,0.08);
display:flex;
align-items:center;
justify-content:center;
padding:28px;
}

.map-placeholder-content{
max-width:420px;
text-align:center;
color:#0f2547;
}

.map-placeholder-content h3{
margin:8px 0 12px;
font-size:24px;
}

.map-placeholder-content p{
font-size:14px;
line-height:1.7;
color:#56647a;
}

.map-landmark{
font-weight:700;
color:#0b3c6f!important;
}

.map-distance{
display:inline-flex;
align-items:center;
justify-content:center;
margin-top:8px;
padding:10px 14px;
border-radius:999px;
background:#fff7ed;
border:1px solid rgba(255,122,0,.24);
color:#0b3c6f!important;
font-weight:700;
}

.map-actions{
display:grid;
grid-template-columns:1fr 1fr;
gap:12px;
margin-top:18px;
}

.map-actions button{
border:none;
border-radius:12px;
padding:13px 14px;
font-weight:700;
cursor:pointer;
color:#fff;
background:linear-gradient(90deg,#1e78ff,#00c8b4);
}

.map-actions button:first-child{
background:#0b3c6f;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:900px){

.grid-3{
grid-template-columns:1fr;
}

.contact-grid{
grid-template-columns:1fr;
}

.contact-hero h1{
font-size:32px;
}

.map-actions{
grid-template-columns:1fr;
}

.loaded-map-actions{
left:10px;
right:10px;
bottom:10px;
display:grid;
grid-template-columns:1fr 1fr;
padding:8px;
}

.loaded-map-actions button{
padding:0 10px;
font-size:13px;
min-width:0;
}

}
