@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, hsla(210,100%,94%,1) 0, transparent 50%), 
        radial-gradient(at 100% 100%, hsla(250,100%,94%,1) 0, transparent 50%);
    color: #334155;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

h1, h2, h3, .nav-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-brand {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a8a, #4f46e5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0f172a;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 0;
    background: linear-gradient(90deg, #1e3a8a, #4f46e5);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.nav-links a:hover::after {
    width: 100%;
}

main {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn 0.6s ease-out forwards;
}

/* Premium Light Cards */
.card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.06), 0 0 20px rgba(15, 23, 42, 0.02);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.card:hover {
    box-shadow: 0 24px 48px -12px rgba(8, 61, 58, 0.09), 0 0 20px rgba(8, 61, 58, 0.04);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-control:focus {
    outline: none;
    background: #ffffff;
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

/* Custom Checkboxes and Radios */
input[type="checkbox"], input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.4rem;
    height: 1.4rem;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    top: 3px;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:hover, input[type="radio"]:hover {
    border-color: #2563eb;
    background: #f0f9ff;
}

input[type="checkbox"]:checked, input[type="radio"]:checked {
    background: #0d9488;
    border-color: #0d9488;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: bold;
}

input[type="radio"]:checked::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: #ffffff;
    border-radius: 50%;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    font-size: 1.05rem;
}

.btn-primary {
    background: linear-gradient(135deg, #083d3a, #0d9488);
    color: white;
    box-shadow: 0 8px 20px rgba(8, 61, 58, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a4d4a, #0fb8a8);
    box-shadow: 0 12px 25px rgba(8, 61, 58, 0.35);
    transform: translateY(-2px) scale(1.01);
}

.btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-2px);
}

.table-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

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

tr:hover td {
    background: #f8fafc;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #0f172a;
}

h2 {
    font-size: 2rem;
    color: #0f172a;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    color: #0f172a;
    font-weight: 700;
}

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

.flash-messages {
    margin-bottom: 2rem;
}

.alert {
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 600;
    animation: fadeIn 0.5s ease-out;
    display: flex;
    align-items: center;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Custom styling for the form sections */
.section-header {
    border-bottom: 2px solid rgba(8, 61, 58, 0.12);
    padding-bottom: 0.8rem;
    margin-top: 3rem;
    margin-bottom: 1.8rem;
    color: #083d3a;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.checkbox-group-container {
    background: #f8fafc;
    padding: 1.8rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.checkbox-group-container label:first-child {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    display: block;
    color: #0f172a;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.checkbox-group-container div {
    display: grid;
    gap: 1rem;
    color: #334155;
    font-weight: 500;
}

/* Multi-step Form Styles */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.form-step.active {
    display: block;
}

.progress-container {
    margin-bottom: 3rem;
    position: relative;
    padding: 0 1rem;
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 1rem;
    right: 1rem;
    height: 4px;
    background: #2563eb;
    transform: translateY(-50%);
    width: 0%;
    transition: width 0.4s ease;
    z-index: 1;
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 1rem;
    right: 1rem;
    height: 4px;
    background: #e2e8f0;
    transform: translateY(-50%);
    z-index: 0;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.progress-steps .step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 4px #ffffff;
}

.progress-steps .step.active {
    border-color: #2563eb;
    color: #2563eb;
    box-shadow: 0 0 0 4px #ffffff, 0 0 15px rgba(37, 99, 235, 0.3);
}

.progress-steps .step.completed {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}
