/* ============================================================
   CONTACT POPUP STYLES
   ============================================================ */

/* ============================================================
   CONTACT POPUP (Overlay)
   ============================================================ */
.contact-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.contact-popup.active {
    display: flex;
}

.contact-popup-content {
    background: linear-gradient(180deg, #1a1a2e, #16213e);
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem 2rem 1.5rem;
    position: relative;
    border: 2px solid rgba(255,215,0,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    animation: popIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-popup-content::-webkit-scrollbar { width: 4px; }
.contact-popup-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 2px; }
.contact-popup-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* ============================================================
   POPUP CLOSE BUTTON
   ============================================================ */
.popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
    padding: 4px;
    font-size: 0;
    line-height: 0;
}

.popup-close:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.popup-close iconify-icon { display: block; }

/* ============================================================
   POPUP HEADER
   ============================================================ */
.popup-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.popup-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,215,0,0.1);
    border: 2px solid rgba(255,215,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.popup-icon iconify-icon { color: #ffd700; }

.popup-header h2 {
    font-family: "Oswald", sans-serif;
    font-size: 1.75rem;
    text-transform: uppercase;
    color: white;
    margin-bottom: 0.25rem;
}

.popup-header p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ============================================================
   OPTIONS GRID
   ============================================================ */
.popup-options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popup-option {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 14px 18px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-align: left;
    font-family: "Inter", sans-serif;
}

.popup-option:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,215,0,0.2);
    transform: translateX(4px);
}

.popup-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,215,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popup-option-icon iconify-icon { color: #ffd700; }
.popup-option-icon.whatsapp { background: rgba(37,211,102,0.15); }
.popup-option-icon.whatsapp iconify-icon { color: #25d366; }

.popup-option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.popup-option-title {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.popup-option-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-top: 1px;
}

.popup-option-arrow {
    color: rgba(255,255,255,0.2);
    transition: all 0.3s;
    flex-shrink: 0;
}

.popup-option:hover .popup-option-arrow {
    color: #ffd700;
    transform: translateX(4px);
}

/* ============================================================
   FORM CONTAINER
   ============================================================ */
.popup-form-container {
    display: none;
    animation: fadeIn 0.3s ease;
}

.popup-form-container.active {
    display: block;
}

.popup-form-container.hidden {
    display: none;
}

.popup-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0 0 1rem 0;
    font-family: "Inter", sans-serif;
    transition: all 0.3s;
}

.popup-back-btn:hover {
    color: #ffd700;
}

/* ============================================================
   FORM STYLES
   ============================================================ */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group textarea[name="message"] {
    white-space: pre-wrap;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: white;
    font-family: "Inter", sans-serif;
    transition: all 0.3s;
    width: 100%;
    outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
    background: rgba(255,255,255,0.08);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.form-group select option {
    background: #1a1a2e;
    color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 160px;
}

.char-counter {
    text-align: right;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    margin-top: 4px;
}

/* ============================================================
   FORM ROW LAYOUT
   ============================================================ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.phone-group {
    display: flex;
    gap: 8px;
}

.phone-group .phone-country {
    width: 70px;
    flex-shrink: 0;
}

.phone-group .phone-number {
    flex: 1;
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */
.popup-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ffd700, #f7971e);
    color: #1a1a2e;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Inter", sans-serif;
    margin-top: 0.25rem;
}

.popup-submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 30px rgba(255,215,0,0.3);
}

.popup-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.popup-submit-btn .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(26,26,46,0.1);
    border-top-color: #1a1a2e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.popup-submit-btn.loading .spinner { display: block; }
.popup-submit-btn.loading .btn-text { display: none; }

/* ============================================================
   STATUS & SUCCESS
   ============================================================ */
.popup-status {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.25rem;
}

.popup-status.error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.2);
    color: #f87171;
}

.popup-status.success {
    background: rgba(74,222,128,0.15);
    border: 1px solid rgba(74,222,128,0.2);
    color: #4ade80;
}

.popup-status.hidden { display: none; }

.popup-success {
    text-align: center;
    padding: 1.5rem 0.5rem;
    display: none;
}

.popup-success.active { display: block; }

.popup-success .success-icon { margin-bottom: 0.75rem; }
.popup-success .success-icon iconify-icon { color: #4ade80; }

.popup-success h3 {
    font-family: "Oswald", sans-serif;
    font-size: 1.5rem;
    color: white;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.popup-success p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    max-width: 320px;
    margin: 0 auto 1rem;
}

.popup-success-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    padding: 8px 28px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: "Inter", sans-serif;
}

.popup-success-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideUpPopup {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .contact-popup { padding: 1rem; }
    .contact-popup-content { padding: 1.5rem 1.25rem 1.25rem; max-width: 100%; max-height: 95vh; }
    .popup-header h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .contact-popup { padding: 0.75rem; align-items: flex-end; }
    .contact-popup-content {
        padding: 1.25rem 1rem 1rem;
        max-height: 98vh;
        border-radius: 20px 20px 0 0;
        animation: slideUpPopup 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .popup-header h2 { font-size: 1.25rem; }
    .popup-header p { font-size: 0.8rem; }
    .popup-icon { width: 44px; height: 44px; }
    .popup-option { padding: 10px 12px; gap: 10px; }
    .popup-option-icon { width: 34px; height: 34px; border-radius: 10px; }
    .popup-option-title { font-size: 0.8rem; }
    .popup-option-desc { font-size: 0.65rem; }
    .form-group input, .form-group select, .form-group textarea { padding: 8px 12px; font-size: 0.85rem; }
    .popup-submit-btn { padding: 10px; font-size: 0.85rem; }
    .popup-success h3 { font-size: 1.25rem; }
    .popup-success p { font-size: 0.8rem; }
    .form-row { grid-template-columns: 1fr; gap: 0.75rem; }
    .phone-group { flex-wrap: wrap; }
    .phone-group .phone-country { width: 100%; }
}
