/**
 * Hemen Sizi Arayalım - Yatay Form Stilleri v2
 * Tasarım: Tek koyu kutu, üstte başlık+WhatsApp, altta yatay 4 alan + buton
 * Renkler: #ff2020 (kırmızı), #0a0a0a (siyah), #fff (beyaz)
 * Eren Kavak / codepine.co
 */

/* ============ BASE ============ */
.alf-wrap {
    width: 100%;
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.alf-wrap *,
.alf-wrap *::before,
.alf-wrap *::after {
    box-sizing: border-box;
}

.alf-wrap i[class*="fa-"] {
    display: inline-block !important;
    font-style: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

.alf-wrap .fas,
.alf-wrap .fa-solid {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
}

.alf-wrap .fab,
.alf-wrap .fa-brands {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", FontAwesome !important;
    font-weight: 400 !important;
}

/* ============ ANA KUTU ============ */
.alf-box {
    position: relative;
    background: #111111 !important;
    border-radius: 18px;
    padding: 32px 36px 28px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 20px 50px -20px rgba(255, 32, 32, 0.2),
        0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

/* Üst kırmızı vurgu çizgisi */
.alf-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #ff2020 25%, #ff5050 50%, #ff2020 75%, transparent 100%);
    z-index: 3;
}

/* Dekoratif çizgiler */
.alf-line {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    display: none !important;
}

.alf-line-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    background: radial-gradient(circle, rgba(255, 32, 32, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
}

.alf-line-2 {
    width: 250px;
    height: 250px;
    bottom: -120px;
    left: 20%;
    background: radial-gradient(circle, rgba(255, 32, 32, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
}

/* ============ ÜST BAR ============ */
.alf-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 18px;
}

.alf-top-left {
    flex: 1;
    min-width: 0;
}

/* Pill / Badge */
.alf-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: rgba(255, 32, 32, 0.12);
    border: 1px solid rgba(255, 32, 32, 0.3);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: #ff5050;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.alf-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff2020;
    box-shadow: 0 0 8px #ff2020;
    animation: alf-pulse 2s ease-in-out infinite;
}

@keyframes alf-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.8); }
}

/* H2 */
.alf-h2 {
    color: #ffffff !important;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 8px 0 !important;
    padding: 0;
    letter-spacing: -0.5px;
}

.alf-h2-accent {
    color: #ff2020;
    margin-left: 6px;
}

.alf-lead {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 14px !important;
    line-height: 1.5;
    margin: 0 !important;
    padding: 0;
    max-width: 600px;
}

/* WhatsApp Butonu */
.alf-wa {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 14px;
    background: linear-gradient(135deg, #25d366 0%, #1ea854 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 20px -8px rgba(37, 211, 102, 0.5);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.alf-wa::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.alf-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -8px rgba(37, 211, 102, 0.65);
    color: #ffffff !important;
}

.alf-wa:hover::before { transform: translateX(100%); }

.alf-wa-ico {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    font-size: 20px;
    color: #ffffff !important;
    flex-shrink: 0;
}

.alf-wa-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.alf-wa-up {
    font-size: 10.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 2px;
}

.alf-wa-num {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.alf-wa-go {
    color: #ffffff;
    font-size: 11px;
    opacity: 0.85;
    transition: transform 0.25s ease;
}

.alf-wa:hover .alf-wa-go {
    transform: translateX(3px);
    opacity: 1;
}

/* ============ ÖZELLİK CHIP'LERİ ============ */
.alf-chips {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.alf-wrap .alf-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 20px !important;
    padding: 0 6px 0 0;
    min-width: 0;
    min-height: 24px;
    vertical-align: middle !important;
}

.alf-wrap .alf-chip i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    background: rgba(255, 32, 32, 0.15);
    border: 1px solid rgba(255, 32, 32, 0.35);
    border-radius: 6px;
    color: #ff5050 !important;
    font-size: 9px !important;
    flex-shrink: 0;
    line-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    vertical-align: middle !important;
}

.alf-wrap .alf-chip span {
    display: inline-block !important;
    min-width: 0;
    line-height: 20px !important;
    vertical-align: middle !important;
}

/* ============ FORM ============ */
.alf-frm {
    position: relative;
    z-index: 2;
}

.alf-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Form Yatay Grid - 4 alan + 1 buton */
.alf-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
}

.alf-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.alf-col-btn {
    min-width: 150px;
}

.alf-col label {
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 7px;
    display: block;
    letter-spacing: 0.2px;
}

.alf-lbl-hidden {
    visibility: hidden;
}

.alf-r {
    color: #ff2020;
    margin-left: 2px;
}

/* Input Container (icon + input/select) */
.alf-inp {
    position: relative;
    width: 100%;
}

/* Input İkonu */
.alf-inp-ico {
    position: absolute;
    left: 16px !important;
    top: 50%;
    transform: translateY(-50%);
    color: #888 !important;
    font-size: 14px !important;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
    width: 20px !important;
    text-align: center;
    line-height: 1;
}

/* Input ve Select - aynı görünüm */
.alf-inp input,
.alf-inp select {
    width: 100% !important;
    height: 46px !important;
    padding: 0 16px 0 50px !important;
    background: #ffffff !important;
    border: 1.5px solid transparent !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #1a1a1a !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    text-indent: 0 !important;
    display: block !important;
    max-width: 100% !important;
}

.alf-inp-sel select {
    padding-left: 50px !important;
    padding-right: 52px !important;
    cursor: pointer !important;
    line-height: 46px !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    background-image: none !important;
}

.alf-inp-sel select option {
    color: #1a1a1a !important;
    background: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

.alf-inp-sel select option[value=""] {
    color: #666666 !important;
}

.alf-inp-sel select:invalid {
    color: #666666 !important;
}

.alf-inp input::placeholder {
    color: #999;
    opacity: 1;
    font-size: 13.5px;
}

.alf-inp input:hover,
.alf-inp select:hover {
    border-color: rgba(255, 32, 32, 0.4);
}

.alf-inp input:focus,
.alf-inp select:focus {
    outline: none;
    border-color: #ff2020;
    box-shadow: 0 0 0 4px rgba(255, 32, 32, 0.18);
}

.alf-inp input:focus ~ .alf-inp-ico,
.alf-inp select:focus ~ .alf-inp-ico {
    color: #ff2020;
}

/* Select Arrow */
.alf-sel-arrow {
    position: absolute;
    right: 18px !important;
    top: 50%;
    transform: translateY(-50%);
    color: #888 !important;
    font-size: 11px !important;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.alf-inp-sel select:focus + .alf-sel-arrow {
    color: #ff2020;
}

/* Error state */
.alf-inp input.alf-error,
.alf-inp select.alf-error {
    border-color: #ff2020;
    background: #fff5f5;
    box-shadow: 0 0 0 4px rgba(255, 32, 32, 0.15);
}

/* ============ GÖNDER BUTONU ============ */
.alf-go {
    width: 100% !important;
    height: 46px !important;
    padding: 0 22px !important;
    background: linear-gradient(135deg, #ff2020 0%, #d11919 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 20px -6px rgba(255, 32, 32, 0.5);
    letter-spacing: 0.3px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    position: relative;
    overflow: hidden;
    white-space: nowrap !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.alf-go *,
.alf-go:visited,
.alf-go:hover,
.alf-go:focus,
.alf-go:active {
    color: #ffffff !important;
}

.alf-go::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.alf-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -6px rgba(255, 32, 32, 0.65);
}

.alf-go:hover::before { transform: translateX(100%); }

.alf-go:active { transform: translateY(0); }

.alf-go:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.alf-go-txt {
    color: #ffffff !important;
    line-height: 1;
}

.alf-go-ico {
    color: #ffffff !important;
    font-size: 13px;
    transition: transform 0.25s ease;
    line-height: 1;
}

.alf-go:hover .alf-go-ico {
    transform: translateX(3px);
}

.alf-go-load {
    display: none;
    font-size: 16px;
    line-height: 1;
}

.alf-go.alf-loading .alf-go-txt,
.alf-go.alf-loading .alf-go-ico {
    display: none;
}

.alf-go.alf-loading .alf-go-load {
    display: inline-flex;
    align-items: center;
}

/* ============ ALT BAR (KVKK + Response) ============ */
.alf-bottom {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alf-kv {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0 !important;
    user-select: none;
}

.alf-kv input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.alf-kv-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    color: transparent;
    font-size: 9px;
}

.alf-kv input[type="checkbox"]:checked + .alf-kv-box {
    background: #ff2020;
    border-color: #ff2020;
    color: #ffffff;
}

.alf-kv input[type="checkbox"]:focus + .alf-kv-box {
    box-shadow: 0 0 0 3px rgba(255, 32, 32, 0.25);
}

.alf-kv-txt {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 12.5px !important;
    line-height: 1.5;
    font-weight: 400 !important;
}

.alf-kv-txt a {
    color: #ff5050 !important;
    font-weight: 600;
    text-decoration: underline;
}

.alf-kv-txt a:hover {
    color: #ff7070 !important;
}

/* ============ RESPONSE MESSAGES ============ */
.alf-resp {
    margin: 0;
    padding: 0;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    display: none;
}

.alf-resp.alf-resp-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-left: 3px solid #22c55e;
}

.alf-resp.alf-resp-success::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', FontAwesome;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #22c55e;
    color: #ffffff;
    border-radius: 50%;
    font-size: 10px;
    flex-shrink: 0;
}

.alf-resp.alf-resp-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 32, 32, 0.12);
    color: #ff7070;
    border-left: 3px solid #ff2020;
}

.alf-resp.alf-resp-error::before {
    content: '\f12a';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', FontAwesome;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #ff2020;
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    flex-shrink: 0;
}

/* ============ FONT AWESOME FALLBACK ============ */
/* Eğer Font Awesome yüklenmemişse, ikonlar kaybolur ama input yine çalışır.
   alf-inp-ico için padding-left'i Font Awesome yokluğunda da koruyoruz. */

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
    .alf-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .alf-col-btn {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .alf-col-btn .alf-lbl-hidden {
        display: none;
    }
}

@media (max-width: 768px) {
    .alf-box {
        padding: 24px 22px 22px;
        border-radius: 14px;
    }

    .alf-top {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
    }

    .alf-wa {
        width: 100%;
        justify-content: flex-start;
    }

    .alf-h2 {
        font-size: 24px;
    }

    .alf-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .alf-chips {
        margin-bottom: 18px;
        padding: 12px 14px;
    }

    .alf-chip {
        font-size: 12.5px;
    }

    /* iOS zoom prevention */
    .alf-inp input,
    .alf-inp select {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .alf-box {
        padding: 22px 18px 20px;
        border-radius: 12px;
    }

    .alf-h2 {
        font-size: 22px;
    }

    .alf-pill {
        font-size: 10px;
        padding: 5px 10px;
    }

    .alf-wa-num {
        font-size: 15px;
    }

    .alf-wa-up {
        font-size: 10px;
    }
}
