:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #f59e0b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #d1d5db;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.2);
    --transition: all 0.2s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header img {
    height: 48px;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Card Container */
.form-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

/* Form Grid & Sections */
.form-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.full-width {
    grid-column: 1 / -1;
}

/* Inputs & Labels */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
}

.required {
    color: #ef4444;
    margin-left: 2px;
}

input,
select,
textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: #f9fafb;
    transition: var(--transition);
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: var(--focus-ring);
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

.info-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 2px;
    font-weight: 500;
}

/* Checkbox & Disclaimer */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1rem 0 1.5rem;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-wrapper label {
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* Button */
.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    display: none;
    /* Hidden by default, shown via JS */
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.25);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 10px rgba(37, 99, 235, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Footer */
.form-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================================================
   FIELD ERROR & VALIDATION STYLES
   ============================================================================ */

/* Error input state */
input.error,
select.error,
textarea.error {
    border-color: #ef4444;
    background: #fef2f2;
}

input.error:focus,
select.error:focus,
textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Error message under field */
.field-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
    animation: slideInError 0.2s ease-in-out;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   NOTIFICATION SYSTEM
   ============================================================================ */

#notificationContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    min-width: 300px;
    animation: slideInNotification 0.3s ease-out;
}

@keyframes slideInNotification {
    from {
        opacity: 0;
        transform: translateX(400px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

/* Success notification */
.notification-success {
    background: #10b981;
    color: white;
}

.notification-success .notification-icon {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Error notification */
.notification-error {
    background: #ef4444;
    color: white;
}

.notification-error .notification-icon {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Info notification */
.notification-info {
    background: #3b82f6;
    color: white;
}

.notification-info .notification-icon {
    font-size: 1rem;
}

.notification-text {
    flex: 1;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

/* Responsive notification */
@media (max-width: 640px) {
    #notificationContainer {
        right: 10px;
        left: 10px;
    }

    .notification {
        min-width: unset;
    }
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 640px) {
    body {
        padding: 10px;
    }

    .form-card {
        padding: 1.25rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1rem;
    }
}


/* Additional Styles */

.top-bar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 15px 30px;
    box-sizing: border-box;
}

.clock {
    background: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    color: #444;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-header {
    text-align: center;
    padding: 20px;
}

.form-header img {
    height: 80px;
    margin: 0 10px;
}

.form-header h2 {
    margin-top: 15px;
    color: #1f2937;
}

.form-header p {
    color: #666;
    font-size: 14px;
}