/* ========== CSS Variables ========== */
:root {
    --bg-dark: #f9fafb;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent-1: #111827; /* Charcoal */
    --accent-2: #374151; /* Dark Gray */
    --accent-3: #6b7280; /* Gray */
    
    --glass-bg: #ffffff;
    --glass-border: #e5e7eb;
    --glass-hover: #f3f4f6;
    
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* ========== Animated Background Blobs - Hidden for Clean Theme ========== */
.background-blobs {
    display: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-1);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-2);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ========== Container & Glass Panel ========== */
.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Header ========== */
.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
}

/* ========== Form Elements ========== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-row {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 500px) {
    .input-row {
        flex-direction: column;
    }
}

.input-group {
    position: relative;
    flex: 1;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem 1rem 0.5rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-1);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.05);
}

/* Floating Label Logic */
.input-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition);
    font-size: 1rem;
}

.input-group textarea ~ label {
    top: 1.25rem;
    transform: none;
}

/* When input is focused OR has text (placeholder not shown) */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: 0.25rem;
    font-size: 0.75rem;
    color: var(--accent-2);
    transform: none;
}

/* ========== Submit Button & Loaders ========== */
.submit-btn {
    position: relative;
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: var(--accent-1);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 54px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    background: var(--accent-2);
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Button Loading State */
.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .btn-loader { display: block; }
.submit-btn.loading {
    cursor: not-allowed;
    opacity: 0.8;
}

/* ========== Status Message ========== */
.status-message {
    text-align: center;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    min-height: 24px;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
}

.status-message.show {
    opacity: 1;
    transform: translateY(0);
}

.status-message.success { color: #16a34a; } /* Green */
.status-message.error { color: #dc2626; } /* Red */

/* ========== WhatsApp Consent Checkbox ========== */
.consent-group {
    display: flex;
    align-items: flex-start;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

/* Hide the native checkbox */
.consent-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom checkbox box */
.consent-checkbox {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid var(--glass-border);
    border-radius: 6px;
    background: #ffffff;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Checked state — WhatsApp green */
.consent-label input[type="checkbox"]:checked ~ .consent-checkbox {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.15);
}

/* Checkmark tick */
.consent-label input[type="checkbox"]:checked ~ .consent-checkbox::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

/* Hover glow */
.consent-label:hover .consent-checkbox {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.consent-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    flex-wrap: wrap;
}

.whatsapp-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    fill: #25D366;
}
