/* ============================================================
   Contact Form — Funnel Stepper
   /contact
   ============================================================ */

/* ========== ALERTS ========== */
.cf-alert {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}
.cf-alert-success { background: #00ab8e; color: #fff; }
.cf-alert-success i { margin-right: 8px; }
.cf-alert-error { background: #dd2656; color: #fff; text-align: left; }
.cf-alert-error i { margin-right: 8px; }

/* ========== STEPPER ========== */
#stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 0;
    padding: 0 10px;
}
.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
    transition: all 0.3s;
}
.step-indicator.clickable { cursor: pointer; }
.step-indicator.clickable:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(221, 38, 86, 0.3);
}
.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
    flex-shrink: 0;
    background: #e8e8e8;
    color: #999;
}
.step-indicator.active .step-number,
.step-indicator.completed .step-number {
    background: #dd2656;
    color: #fff;
}
.step-indicator.completed .step-number { font-size: 0; }
.step-indicator.completed .step-number::after {
    content: '\2713';
    font-size: 16px;
    font-weight: bold;
}
.step-label {
    font-size: 13px;
    color: #999;
    font-weight: 500;
    transition: color 0.3s;
}
.step-indicator.active .step-label,
.step-indicator.completed .step-label {
    color: #1c3d68;
}
.step-connector {
    width: 50px;
    height: 3px;
    background: #e8e8e8;
    border-radius: 2px;
    margin: 0 6px;
    overflow: hidden;
}
.step-connector-fill {
    width: 0;
    height: 100%;
    background: #dd2656;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ========== STEP TITLE ========== */
.cf-step-title {
    color: #1c3d68;
    text-align: center;
    margin-bottom: 25px;
    font-size: 20px;
}

/* ========== FORM STEPS ========== */
#stepsContainer {
    position: relative;
    overflow: hidden;
}
.form-step {
    display: none;
    animation-duration: 0.35s;
    animation-fill-mode: both;
}
.form-step.active {
    display: block;
    padding: 10px;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
.form-step.slide-in-right { animation-name: slideInRight; }
.form-step.slide-in-left  { animation-name: slideInLeft; }

/* ========== PROFILE CARDS ========== */
#profileCards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}
.profile-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
    min-width: 180px;
    text-align: center;
    position: relative;
}
.profile-card input[type="radio"] { display: none; }
.profile-card-label {
    font-weight: 500;
    color: #1c3d68;
    font-size: 15px;
    pointer-events: none;
}
.profile-card:hover {
    border-color: #dd2656;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(221, 38, 86, 0.12);
}
.profile-card.selected {
    border-color: #dd2656;
    background: #fdf2f5;
    box-shadow: 0 4px 12px rgba(221, 38, 86, 0.15);
}
.profile-card.selected::after {
    content: '\2713';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dd2656;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* ========== FORM FIELDS ========== */
.cf-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}
.cf-col {
    flex: 1;
    min-width: 200px;
}
.cf-label {
    display: block;
    margin-bottom: 6px;
    color: #1c3d68;
    font-weight: 500;
    font-size: 14px;
}
.cf-help {
    font-size: 13px;
    color: #777;
    margin-top: 6px;
    line-height: 1.4;
}
.cf-input {
    width: 100%;
    height: 50px;
    background: #f7f7f7;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.25s, box-shadow 0.25s;
    font-family: 'Poppins', sans-serif;
    outline: none;
}
.cf-input:focus {
    border-color: #1c3d68;
    box-shadow: 0 0 0 3px rgba(28, 61, 104, 0.1);
}
.cf-input.field-valid {
    border-color: #00ab8e;
    box-shadow: 0 0 0 3px rgba(0, 171, 142, 0.08);
}
.cf-input.field-error {
    border-color: #dd2656;
    box-shadow: 0 0 0 3px rgba(221, 38, 86, 0.08);
}
.cf-textarea {
    height: auto;
    padding: 14px 16px;
    resize: none;
    line-height: 1.5;
}
.cf-select {
    appearance: auto;
    cursor: pointer;
}

/* ========== INLINE ERRORS ========== */
.field-error-msg {
    font-size: 13px;
    color: #dd2656;
    margin-top: 4px;
    min-height: 0;
    overflow: hidden;
    transition: all 0.25s ease;
    opacity: 0;
    max-height: 0;
}
.field-error-msg.visible {
    opacity: 1;
    max-height: 40px;
    margin-top: 6px;
}

/* ========== SHAKE ========== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.shake { animation: shake 0.4s ease; }

/* ========== CHARACTER COUNTER ========== */
.cf-char-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.cf-char-bar {
    flex: 1;
    height: 4px;
    background: #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
}
.cf-char-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.2s, background 0.3s;
    background: #00ab8e;
}
#charCount {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    transition: color 0.3s;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
#charCount.warning {
    color: #dd2656;
    animation: pulse 1s ease infinite;
}

/* ========== DROP ZONE ========== */
.drop-zone {
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: #fafafa;
    position: relative;
}
.drop-zone:hover,
.drop-zone.dragover {
    border-color: #dd2656;
    background: #fdf2f5;
}
.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.drop-zone-prompt i {
    font-size: 32px;
    color: #bbb;
    margin-bottom: 10px;
    display: block;
}
.drop-zone-prompt p { margin: 0; color: #777; font-size: 15px; }
.drop-zone-prompt span { color: #dd2656; font-weight: 500; text-decoration: underline; }
.drop-zone-prompt small { color: #aaa; font-size: 13px; display: block; margin-top: 6px; }
.drop-zone-file {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.drop-zone-file i.fa-file { font-size: 20px; color: #1c3d68; }
.drop-zone-filename { font-size: 14px; color: #1c3d68; font-weight: 500; }
.drop-zone-check {
    font-size: 20px;
    color: #00ab8e;
    margin-left: 8px;
}
.drop-zone-remove {
    background: none;
    border: none;
    color: #dd2656;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.drop-zone-remove:hover { background: rgba(221, 38, 86, 0.1); }

/* ========== CHECKBOXES ========== */
.cf-checkbox-group { margin-bottom: 16px; }
.cf-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    position: relative;
}
.cf-checkbox input[type="checkbox"] { display: none; }
.cf-checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cf-checkbox input:checked + .cf-checkbox-mark {
    background: #dd2656;
    border-color: #dd2656;
}
.cf-checkbox input:checked + .cf-checkbox-mark::after {
    content: '\2713';
    color: #fff;
    font-size: 13px;
    font-weight: bold;
}

/* ========== BUTTONS ========== */
.cf-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}
.cf-btn {
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.25s;
    font-family: 'Poppins', sans-serif;
}
.cf-btn i { margin: 0 4px; }
.cf-btn-next { background: #dd2656; color: #fff; }
.cf-btn-next:hover {
    background: #c41e4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(221, 38, 86, 0.3);
}
.cf-btn-prev {
    background: #f7f7f7;
    color: #1c3d68;
    border: 1px solid #e0e0e0;
}
.cf-btn-prev:hover { background: #eee; }
.cf-btn-submit {
    background: #fdad06;
    color: #fff;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
}
.cf-btn-submit:hover {
    background: #e99d00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(253, 173, 6, 0.4);
}
.cf-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== PHONE BLOCK ========== */
.cf-phone-block {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 8px;
}
.cf-phone-number {
    color: #dd2656;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .profile-card { min-width: 100% !important; }
    #stepper .step-label { display: none; }
    .step-connector { width: 24px; }
    .cf-btn { padding: 12px 20px; font-size: 14px; }
    .cf-col { min-width: 100% !important; }
}
