/* ═══════════════════════════════════════════════════════
   VEZOZA Contact Popup — v1.0.0
   Design: black #000, white #fff, muted #B4B4B4, border #888
═══════════════════════════════════════════════════════ */

/* ── Overlay ────────────────────────────────────────── */
.vcf-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: vcf-fade-in 0.2s ease;
}
.vcf-overlay[hidden] { display: none; }

@keyframes vcf-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Popup card ─────────────────────────────────────── */
.vcf-popup {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(136, 136, 136, 0.20);
    border-radius: 22px;
    padding: 36px 32px 28px;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.04);
    animation: vcf-slide-up 0.28s cubic-bezier(0.34, 1.45, 0.64, 1);
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #525252 transparent;
}
.vcf-popup::-webkit-scrollbar { width: 4px; }
.vcf-popup::-webkit-scrollbar-thumb { background: #525252; border-radius: 2px; }

@keyframes vcf-slide-up {
    from { transform: translateY(24px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* ── Close button ───────────────────────────────────── */
.vcf-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #888888;
    border-radius: 50%;
    color: #888888;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.vcf-close:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
}

/* ── Header ─────────────────────────────────────────── */
.vcf-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
}

.vcf-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    color: #000000;
}

.vcf-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 4px !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    border: none !important;
}

.vcf-subtitle {
    font-size: 0.875rem;
    color: #B4B4B4;
    margin: 0;
    line-height: 1.45;
}

/* ── Form layout ────────────────────────────────────── */
.vcf-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vcf-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.vcf-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #B4B4B4;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.vcf-req { color: #ffffff; }

.vcf-field-hint {
    font-size: 0.78rem;
    color: #525252;
    line-height: 1.4;
}

/* ── Inputs ─────────────────────────────────────────── */
.vcf-field input[type="text"],
.vcf-field input[type="email"],
.vcf-field input[type="tel"],
.vcf-field textarea {
    width: 100%;
    padding: 12px 15px;
    background: #000000;
    border: 1px solid #888888;
    border-radius: 11px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
    resize: vertical;
}

.vcf-field input:focus,
.vcf-field textarea:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.vcf-field input::placeholder,
.vcf-field textarea::placeholder {
    color: #525252;
}

/* ── Contact method pills ───────────────────────────── */
.vcf-method-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.vcf-pill { cursor: pointer; }

.vcf-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.vcf-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    background: transparent;
    border: 1px solid #888888;
    border-radius: 10px;
    font-size: 0.8125rem;
    color: #B4B4B4;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    white-space: nowrap;
    width: 100%;
}

.vcf-pill input[type="radio"]:checked + span {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    font-weight: 600;
}

.vcf-pill span:hover {
    border-color: #ffffff;
    color: #ffffff;
}

/* ── Error ──────────────────────────────────────────── */
.vcf-error {
    padding: 10px 14px;
    background: transparent;
    border: 1px solid #888888;
    border-radius: 9px;
    color: #B4B4B4;
    font-size: 0.875rem;
    line-height: 1.4;
}
.vcf-error[hidden] { display: none; }

/* ── Submit button ──────────────────────────────────── */
.vcf-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    color: #000000;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    margin-top: 2px;
}
.vcf-submit:hover:not(:disabled) {
    background: #B4B4B4;
    transform: translateY(-1px);
}
.vcf-submit:active:not(:disabled) {
    transform: translateY(0);
}
.vcf-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.vcf-submit__spinner[hidden],
.vcf-submit__arrow[hidden] { display: none; }

@keyframes vcf-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.vcf-spin { animation: vcf-spin 0.75s linear infinite; }

/* ── Privacy note ───────────────────────────────────── */
.vcf-privacy-note {
    font-size: 0.75rem;
    color: #525252;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* ── Contact field ──────────────────────────────────── */
#vcf-contact-field[hidden] { display: none; }

/* ── Success state ──────────────────────────────────── */
.vcf-success[hidden] { display: none; }

.vcf-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px 4px;
    gap: 14px;
}

.vcf-success__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #888888;
    border-radius: 50%;
    color: #ffffff;
    animation: vcf-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes vcf-pop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.vcf-success__title {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.vcf-success__msg {
    font-size: 0.9375rem;
    color: #B4B4B4;
    max-width: 340px;
    line-height: 1.55;
    margin: 0;
}

.vcf-btn-close-success {
    margin-top: 6px;
    padding: 11px 28px;
    background: transparent;
    border: 1px solid #888888;
    border-radius: 10px;
    color: #B4B4B4;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.vcf-btn-close-success:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
}

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 520px) {
    .vcf-popup {
        padding: 28px 20px 22px;
        border-radius: 18px;
    }
    .vcf-title { font-size: 1.1rem !important; }
    .vcf-method-pills { grid-template-columns: repeat(2, 1fr); }
}
