/**
 * CSS Styling for Hong Phu Leads Popup
 * Style: Luxury Glassmorphism & Gold highlights
 */

:root {
    --hp-primary-color: #0c2340; /* Navy Blue */
    --hp-accent-color: #c5a059;  /* Gold */
    --hp-accent-hover: #b38f48;
    --hp-text-dark: #1f2937;
    --hp-text-light: #4b5563;
    --hp-border-color: #e5e7eb;
    --hp-bg-white: #ffffff;
    --hp-radius: 12px;
}

/* Overlay Backdrop */
.hp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 35, 64, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hp-popup-overlay.hp-show {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.hp-popup-container {
    background-color: var(--hp-bg-white);
    width: 100%;
    max-width: 460px;
    border-radius: var(--hp-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(197, 160, 89, 0.15);
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    border-top: 5px solid var(--hp-accent-color);
}

.hp-popup-overlay.hp-show .hp-popup-container {
    transform: scale(1);
}

/* Close Button */
.hp-popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
    z-index: 10;
}

.hp-popup-close-btn:hover {
    background-color: #f3f4f6;
    color: var(--hp-primary-color);
}

/* Content Wrapper */
.hp-popup-content-wrapper {
    padding: 35px 30px;
    text-align: center;
}

/* Header Icon */
.hp-popup-header-icon {
    width: 54px;
    height: 54px;
    background-color: rgba(197, 160, 89, 0.1);
    color: var(--hp-accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.hp-popup-header-icon svg {
    width: 26px;
    height: 26px;
}

/* Title and Subtitle */
.hp-popup-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--hp-primary-color);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.hp-popup-subtitle {
    font-size: 13.5px;
    color: var(--hp-text-light);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Form Styling */
.hp-popup-form {
    text-align: left;
}

.hp-form-group {
    margin-bottom: 16px;
}

.hp-form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hp-primary-color);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hp-form-label .required {
    color: #ef4444;
}

.hp-input-wrapper {
    position: relative;
}

.hp-input-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #9ca3af;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.hp-input-icon svg {
    width: 18px;
    height: 18px;
}

.hp-form-control {
    width: 100% !important;
    height: 42px !important;
    padding: 8px 12px 8px 40px !important;
    border: 1px solid var(--hp-border-color) !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: var(--hp-text-dark) !important;
    background-color: #fafafa !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
}

.hp-form-control:focus {
    border-color: var(--hp-accent-color) !important;
    background-color: var(--hp-bg-white) !important;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15) !important;
    outline: none !important;
}

/* Submit Button */
.hp-submit-btn {
    width: 100% !important;
    height: 46px !important;
    background: linear-gradient(135deg, var(--hp-accent-color) 0%, var(--hp-accent-hover) 100%) !important;
    color: var(--hp-bg-white) !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.1s, filter 0.2s !important;
    margin-top: 24px !important;
    box-shadow: 0 4px 6px -1px rgba(197, 160, 89, 0.2), 0 2px 4px -1px rgba(197, 160, 89, 0.1) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-sizing: border-box !important;
}

.hp-submit-btn:hover {
    filter: brightness(1.05);
}

.hp-submit-btn:active {
    transform: scale(0.98);
}

.hp-submit-btn:disabled {
    background: #cbd5e1 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    filter: none !important;
}

/* Spinner Animation */
.hp-btn-spinner svg {
    width: 20px;
    height: 20px;
}

.animate-spin {
    animation: hp-spin 1s linear infinite;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-75 {
    opacity: 0.75;
}

@keyframes hp-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Alerts */
.hp-popup-alert {
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 13.5px;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.4;
}

.hp-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.hp-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

/* Footer text */
.hp-popup-footer-text {
    font-size: 11px;
    color: #9ca3af;
    margin: 15px 0 0 0;
}

/* Responsive adjustment */
@media (max-width: 480px) {
    .hp-popup-overlay {
        padding: 15px;
    }
    .hp-popup-content-wrapper {
        padding: 30px 20px;
    }
    .hp-popup-title {
        font-size: 20px;
    }
}
