/* ============================================================
   CONTACT POPUP — Premium Embossed / Neumorphic Dark Style
   Matching CodzFlow IT Solutions color scheme
   ============================================================ */

/* ===== Overlay ===== */
.cf-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 20px;
}

.cf-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ===== Popup Container ===== */
.cf-popup-container {
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    background: #3a2a22;
    border-radius: 24px;
    padding: 48px 44px 40px;
    position: relative;
    box-shadow:
        12px 12px 24px rgba(0, 0, 0, 0.5),
        -8px -8px 20px rgba(80, 55, 40, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: scale(0.85) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cf-popup-overlay.active .cf-popup-container {
    transform: scale(1) translateY(0);
}

/* Custom scrollbar */
.cf-popup-container::-webkit-scrollbar {
    width: 5px;
}
.cf-popup-container::-webkit-scrollbar-track {
    background: transparent;
}
.cf-popup-container::-webkit-scrollbar-thumb {
    background: rgba(255, 246, 105, 0.25);
    border-radius: 10px;
}


/* ===== Close Button ===== */
.cf-popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #332418;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.4),
        -3px -3px 6px rgba(80, 55, 40, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.cf-popup-close:hover {
    box-shadow:
        inset 3px 3px 6px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(80, 55, 40, 0.2);
    transform: scale(0.95);
}

.cf-popup-close svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.6);
    transition: stroke 0.3s ease;
}

.cf-popup-close:hover svg {
    stroke: #FFF669;
}


/* ===== Header ===== */
.cf-popup-header {
    text-align: center;
    margin-bottom: 36px;
}

.cf-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #FFF669;
    background: rgba(255, 246, 105, 0.08);
    border: 1px solid rgba(255, 246, 105, 0.15);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.cf-popup-badge-dot {
    width: 6px;
    height: 6px;
    background: #FFF669;
    border-radius: 50%;
    animation: cf-pulse 2s ease-in-out infinite;
}

@keyframes cf-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.6); }
}

.cf-popup-title {
    font-family: var(--tp-ff-teko), 'Teko', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.cf-popup-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    line-height: 1.5;
}


/* ===== Form ===== */
.cf-popup-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cf-form-row {
    display: flex;
    gap: 16px;
}

.cf-form-group {
    flex: 1;
    position: relative;
}

.cf-form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.cf-form-label .cf-required {
    color: #FFF669;
    margin-left: 2px;
}


/* ===== Embossed Input Fields ===== */
.cf-form-input,
.cf-form-select,
.cf-form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    color: #fff;
    background: #332418;
    border: 1px solid transparent;
    border-radius: 14px;
    outline: none;
    box-shadow:
        inset 4px 4px 8px rgba(0, 0, 0, 0.45),
        inset -3px -3px 6px rgba(80, 55, 40, 0.18);
    transition: all 0.35s ease;
}

.cf-form-input::placeholder,
.cf-form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.cf-form-input:focus,
.cf-form-select:focus,
.cf-form-textarea:focus {
    border-color: rgba(255, 246, 105, 0.35);
    box-shadow:
        inset 4px 4px 8px rgba(0, 0, 0, 0.45),
        inset -3px -3px 6px rgba(80, 55, 40, 0.18),
        0 0 0 3px rgba(255, 246, 105, 0.08);
}


/* ===== Select Dropdown ===== */
.cf-form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 44px;
}

.cf-select-wrapper {
    position: relative;
}

.cf-select-wrapper::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(255, 246, 105, 0.5);
    pointer-events: none;
}

.cf-form-select option {
    background: #332418;
    color: #fff;
    padding: 10px;
}


/* ===== Textarea ===== */
.cf-form-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}


/* ===== Budget Range ===== */
.cf-budget-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cf-budget-chip {
    display: none;
}

.cf-budget-label {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    background: #332418;
    border-radius: 10px;
    cursor: pointer;
    box-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.35),
        -2px -2px 4px rgba(80, 55, 40, 0.15);
    transition: all 0.3s ease;
    user-select: none;
}

.cf-budget-label:hover {
    color: rgba(255, 255, 255, 0.7);
}

.cf-budget-chip:checked + .cf-budget-label {
    color: #FFF669;
    background: rgba(255, 246, 105, 0.1);
    box-shadow:
        inset 3px 3px 6px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(80, 55, 40, 0.15);
    border: 1px solid rgba(255, 246, 105, 0.2);
}


/* ===== Submit Button ===== */
.cf-submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-family: var(--tp-ff-teko), 'Teko', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a1008;
    background: linear-gradient(135deg, #FFF669 0%, #e6d94f 50%, #FFF669 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow:
        6px 6px 14px rgba(0, 0, 0, 0.4),
        -4px -4px 10px rgba(80, 55, 40, 0.2),
        0 0 20px rgba(255, 246, 105, 0.1);
    transition: all 0.4s ease;
    margin-top: 6px;
}

.cf-submit-btn:hover {
    background-position: 100% 100%;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.4),
        -3px -3px 8px rgba(80, 55, 40, 0.2),
        0 0 30px rgba(255, 246, 105, 0.2);
    transform: translateY(-2px);
}

.cf-submit-btn:active {
    transform: translateY(1px);
    box-shadow:
        inset 3px 3px 6px rgba(0, 0, 0, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1);
}

/* Shimmer animation on button */
.cf-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.cf-submit-btn:hover::before {
    left: 100%;
}


/* ===== Success State ===== */
.cf-popup-success {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.cf-popup-success.show {
    display: block;
}

.cf-popup-form.hide {
    display: none;
}

.cf-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: rgba(255, 246, 105, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        6px 6px 14px rgba(0, 0, 0, 0.4),
        -4px -4px 10px rgba(80, 55, 40, 0.2);
    animation: cf-success-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cf-success-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.cf-success-icon svg {
    width: 36px;
    height: 36px;
    stroke: #FFF669;
}

.cf-success-title {
    font-family: var(--tp-ff-teko), 'Teko', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.cf-success-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin: 0;
}


/* ===== Bottom Note ===== */
.cf-popup-note {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}

.cf-popup-note a {
    color: rgba(255, 246, 105, 0.5);
    text-decoration: none;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
    .cf-popup-container {
        padding: 36px 24px 32px;
        border-radius: 18px;
        max-height: 85vh;
    }

    .cf-popup-title {
        font-size: 28px;
    }

    .cf-form-row {
        flex-direction: column;
        gap: 18px;
    }

    .cf-form-input,
    .cf-form-select,
    .cf-form-textarea {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 12px;
    }

    .cf-budget-options {
        gap: 6px;
    }

    .cf-budget-label {
        padding: 7px 12px;
        font-size: 12px;
    }

    .cf-submit-btn {
        font-size: 18px;
        padding: 14px 24px;
    }
}

@media (max-width: 400px) {
    .cf-popup-container {
        padding: 28px 18px 24px;
    }

    .cf-popup-title {
        font-size: 24px;
    }

    .cf-popup-subtitle {
        font-size: 13px;
    }
}
