/* ????????????????????????????????????????????????????
   contact.css  —  Styles for Home/Contact page
   PDPortal / PublicDial Services
???????????????????????????????????????????????????? */

/* ?? Contact section wrapper ?? */
.contact_section { padding: 38px 0 25px; background: #f4f5fb; }

/* ??????????????????????????????????????
   LEFT: Form Card
?????????????????????????????????????? */
.contact_form_card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(26,35,126,.10);
    padding: 40px 36px 36px;
}
.contact_form_card h3 {
    font-size: 22px; font-weight: 800; color: #1a237e;
    font-family: 'Sen', sans-serif; margin-bottom: 6px;
}
.contact_form_card p.sub { font-size: 13.5px; color: #888; margin-bottom: 26px; }

/* ?? Field row ?? */
.cf_row { display: flex; gap: 16px; }
.cf_row .cf_group { flex: 1; }

/* ?? Field group ?? */
.cf_group { margin-bottom: 18px; }
.cf_group label {
    display: block; font-size: 12px; font-weight: 700;
    color: #1a237e; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px;
}
.cf_group label span { color: #e65100; }

/* ?? Inputs ?? */
.cf_input {
  width: 100%; padding: 11px 14px; border: 1.5px solid #d0d4e8;
    border-radius: 7px; font-size: 14px; color: #333;
    background: #f9f9fc; transition: border-color .2s, box-shadow .2s; box-sizing: border-box;
}
.cf_input:focus { outline: none; border-color: #1a237e; box-shadow: 0 0 0 3px rgba(26,35,126,.10); background: #fff; }
.cf_input.field_error { border-color: #e53935; box-shadow: 0 0 0 3px rgba(229,57,53,.10); }
.cf_input.field_ok    { border-color: #43a047; box-shadow: 0 0 0 3px rgba(67,160,71,.10); }

.field_error_msg { color: #e53935; font-size: 11.5px; margin-top: 4px; display: none; }

/* ?? Textarea ?? */
.cf_textarea {
    min-height: 160px; max-height: 400px; resize: vertical;
    font-family: 'Poppins', sans-serif; font-size: 13.5px; line-height: 1.7;
    border-radius: 7px 7px 0 0; border-bottom: none;
}
.cf_textarea:focus { border-radius: 7px 7px 0 0; }

/* ?? Message wrapper ?? */
.cf_msg_wrap { margin-bottom: 18px; }
.cf_msg_label_row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cf_msg_label_row label { font-size: 12px; font-weight: 700; color: #1a237e; text-transform: uppercase; letter-spacing: .6px; margin: 0; }
.cf_msg_label_row label span { color: #e65100; }
.cf_msg_tip { font-size: 11px; color: #aaa; font-style: italic; }

/* ?? Textarea footer bar ?? */
.cf_msg_footer {
    display: flex; align-items: center; justify-content: space-between;
    background: #f4f5fb; border: 1.5px solid #d0d4e8;
    border-top: none; border-radius: 0 0 7px 7px; padding: 6px 12px;
}
.cf_msg_footer .cf_msg_hint { font-size: 11px; color: #aaa; display: flex; align-items: center; gap: 5px; }
.cf_msg_footer .cf_msg_hint i { color: #1a237e; font-size: 12px; }
#msg_counter { font-size: 11px; font-weight: 600; color: #aaa; white-space: nowrap; }
#msg_counter.warn  { color: #e65100; }
#msg_counter.limit { color: #e53935; }
.cf_input.field_error + .cf_msg_footer { border-color: #e53935; }
.cf_input.field_ok   + .cf_msg_footer { border-color: #43a047; }

/* ?? Submit button ?? */
.cf_submit_btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(90deg,#1a237e,#283593);
    color: #fff; border: none; border-radius: 8px;
    padding: 13px 32px; font-size: 15px; font-weight: 700;
    cursor: pointer; width: 100%; justify-content: center;
    transition: background .25s, opacity .2s; font-family: 'Poppins', sans-serif; margin-top: 6px;
}
.cf_submit_btn:hover    { background: linear-gradient(90deg,#e65100,#bf360c); }
.cf_submit_btn:disabled { opacity: .7; cursor: not-allowed; }

/* ??????????????????????????????????????
   SUCCESS CONFIRMATION PANEL
?????????????????????????????????????? */
.cf_success_card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(26,35,126,.12);
    padding: 44px 36px 36px;
    text-align: center;
    animation: cfFadeUp .45s ease both;
}
@keyframes cfFadeUp {
 from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ?? Animated check icon ?? */
.cf_success_icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg,#2e7d32,#43a047);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px; box-shadow: 0 6px 24px rgba(46,125,50,.30);
    animation: cfBounce .5s .2s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes cfBounce {
    0%,100% { transform: scale(1); }
    40%     { transform: scale(1.15); }
    70%     { transform: scale(.95); }
}
.cf_success_icon i { font-size: 36px; color: #fff; }

.cf_success_title {
    font-size: 24px; font-weight: 800; color: #1a237e;
 font-family: 'Sen', sans-serif; margin-bottom: 10px;
}
.cf_success_sub { font-size: 14px; color: #666; margin-bottom: 24px; line-height: 1.7; }

/* ?? Submitted details summary box ?? */
.cf_success_summary {
    background: #f4f5fb; border-radius: 8px; border-left: 4px solid #e65100;
    padding: 14px 18px; margin-bottom: 28px; text-align: left;
    font-size: 13px; color: #444; line-height: 1.9;
}
.cf_success_summary strong { color: #1a237e; }

/* ?? 3-step process ?? */
.cf_success_steps {
    display: flex; gap: 0; margin-bottom: 28px;
    border: 1px solid #e0e3f0; border-radius: 10px; overflow: hidden;
}
.cf_step {
    flex: 1; padding: 16px 12px; text-align: center;
    border-right: 1px solid #e0e3f0; background: #fff;
}
.cf_step:last-child { border-right: none; }
.cf_step_num {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg,#1a237e,#283593);
    color: #fff; font-size: 15px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
}
.cf_step_num_orange { background: linear-gradient(135deg,#e65100,#ff6d00) !important; }
.cf_step_text strong { display: block; font-size: 12px; font-weight: 700; color: #1a237e; margin-bottom: 3px; }
.cf_step_text span   { font-size: 11px; color: #888; line-height: 1.4; display: block; }

/* ?? Action buttons ?? */
.cf_success_actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.cf_wa_btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25d366; color: #fff !important; font-weight: 700; font-size: 14px;
    padding: 11px 24px; border-radius: 8px; text-decoration: none !important;
    transition: background .2s, transform .2s;
}
.cf_wa_btn:hover { background: #1ebe5a; transform: translateY(-2px); }
.cf_wa_btn i { font-size: 18px; }

.cf_another_btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #f4f5fb; color: #1a237e; font-weight: 700; font-size: 14px;
    padding: 11px 24px; border-radius: 8px; border: 1.5px solid #d0d4e8;
    cursor: pointer; transition: background .2s, border-color .2s;
}
.cf_another_btn:hover { background: #e8eaf6; border-color: #1a237e; }

.cf_success_note { font-size: 12px; color: #aaa; margin: 0; }
.cf_success_note a { color: #e65100; font-weight: 700; text-decoration: none; }
.cf_success_note a:hover { text-decoration: underline; }

/* ??????????????????????????????????????
   RIGHT: Info Panel
?????????????????????????????????????? */
.contact_info_panel { display: flex; flex-direction: column; gap: 0; height: 100%; }
.info_brand {
    background: linear-gradient(135deg,#1a237e 0%,#283593 60%,#e65100 100%);
    border-radius: 12px 12px 0 0; padding: 30px 28px 24px; color: #fff;
}
.info_brand h4 { font-size: 19px; font-weight: 800; font-family: 'Sen',sans-serif; margin: 0 0 6px; }
.info_brand p  { font-size: 13px; opacity: .82; margin: 0; line-height: 1.65; }

.info_body {
    background: #fff; border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 30px rgba(26,35,126,.10); padding: 8px 0 6px; flex: 1;
}
.info_item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 18px 26px; border-bottom: 1px solid #f0f1f8; transition: background .2s;
}
.info_item:last-of-type { border-bottom: none; }
.info_item:hover        { background: #f9f9fc; }
.info_icon { width: 44px; height: 44px; flex-shrink: 0; background: #e8eaf6; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.info_icon i        { font-size: 18px; color: #1a237e; }
.info_icon.orange   { background: #fff3e0; }
.info_icon.orange i { color: #e65100; }
.info_text h6 { font-size: 12px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: .7px; margin: 0 0 4px; }
.info_text p,
.info_text a{ font-size: 14px; color: #333; margin: 0; line-height: 1.65; text-decoration: none; }
.info_text a:hover { color: #e65100; }

/* ?? Social strip ?? */
.info_social { padding: 18px 26px 20px; border-top: 1px solid #f0f1f8; }
.info_social span { font-size: 12px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: .7px; display: block; margin-bottom: 12px; }
.info_social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px; color: #fff; font-size: 15px;
    margin-right: 8px; text-decoration: none; transition: opacity .2s, transform .2s;
}
.info_social a:hover { opacity: .85; transform: translateY(-2px); }
.info_social a.fb { background: #3b5998; }
.info_social a.tw { background: #1da1f2; }
.info_social a.li { background: #0077b5; }
.info_social a.ig { background: radial-gradient(circle at 30% 107%,#fdf497 0%,#fd5949 45%,#d6249f 60%,#285aeb 90%); }
.info_social a.yt { background: #ff0000; }
.info_social a.wa { background: #25d366; width: 120px; }

/* ?? Toast ?? */
#contact_toast {
    position: fixed; bottom: 30px; right: 30px;
    min-width: 300px; max-width: 420px; padding: 18px 22px;
    border-radius: 10px; font-size: 14px; font-weight: 600; color: #fff;
    z-index: 9999; box-shadow: 0 8px 32px rgba(0,0,0,.18);
    display: none; align-items: center; gap: 14px;
}
#contact_toast.success { background: #2e7d32; }
#contact_toast.error   { background: #c62828; }
#contact_toast i { font-size: 22px; flex-shrink: 0; }

/* ?? WhatsApp float ?? */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 20px; right: 20px;
    background: #25d366; color: #fff; border-radius: 50%; text-align: center;
    line-height: 60px; font-size: 14px; font-weight: bold; text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0,0,0,.3); z-index: 9999;
}

/* ?? Responsive ?? */
@media (max-width: 767px) {
    .cf_row { flex-direction: column; gap: 0; }
    .contact_form_card, .cf_success_card { padding: 26px 18px; }
    .info_brand { border-radius: 12px 12px 0 0; }
    .cf_success_steps { flex-direction: column; }
    .cf_step { border-right: none; border-bottom: 1px solid #e0e3f0; }
    .cf_step:last-child { border-bottom: none; }
    .cf_success_actions { flex-direction: column; }
    .cf_wa_btn, .cf_another_btn { width: 100%; justify-content: center; }
}
