/* Liquid Glass Style */
:root {
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --primary-color: #007aff; /* Apple Blue */
    --text-color: #1d1d1f;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background: linear-gradient(135deg, #ffffff 0%, #e6e9f0 100%);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Animated Background Gradient */
body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 230, 240, 1) 0%, rgba(210, 240, 255, 1) 100%);
    background-size: 400% 400%;
    z-index: -1;
    animation: gradientBG 15s ease infinite;
    opacity: 0.5;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass-container, .bg-white, .modal-content, .container {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px !important;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Inputs & Selects */
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], select {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid #cbd5e0 !important; /* Thêm border nhẹ màu xám xanh */
    border-radius: 14px !important;
    padding: 14px 18px !important;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    width: 100%; /* Ensure full width in flex containers */
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007aff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1em !important;
    padding-right: 2.5rem !important;
}

input:hover, select:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 122, 255, 0.3) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

input:focus, select:focus {
    background: #ffffff !important;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15), 0 4px 12px rgba(0, 122, 255, 0.1);
    border-color: var(--primary-color) !important;
    transform: translateY(-1px);
}

/* Checkboxes */
input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Labels */
label {
    font-weight: 600;
    color: #4a5568; /* Cool gray */
    margin-bottom: 0.5rem;
    display: inline-block;
    font-size: 0.95rem;
}

/* Buttons */
button, .btn {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    border: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 122, 255, 0.3);
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 122, 255, 0.4);
    background: #0062cc !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #1d1d1f;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(90deg, #FF3B30, #FF9500, #34C759, #007AFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tables */
table {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

th {
    background: rgba(0, 122, 255, 0.1) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 12px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

tr:last-child td {
    border-bottom: none !important;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.4);
}

/* Cards & Sections */
section {
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
}

/* FAQ Items */
.faq-item {
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 16px !important;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px);
}

.faq-content {
    background: rgba(255, 255, 255, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 0 0 16px 16px;
}

/* Hero Section */
.hero-bg {
    background: transparent !important;
    padding: 40px 20px;
}

/* Chart Container */
.chart-container {
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--glass-shadow);
}
