:root {
    /* primary colors */
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #E0E7FF;
    
    /* Success & Error */
    --success: #10B981;
    --error: #EF4444;
    
    /* Neutrals */
    --dark: #1F2937;
    --medium: #6B7280;
    --light: #F9FAFB;
    --white: #FFFFFF;
    
    /* Borders */
    --border: #E5E7EB;
}

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

body {
    font-family: 'Times New Roman', Times, serif;
    background: linear-gradient(135deg, var(--light) 0% #E0E7FF 100%);
    color: var(--dark);
    line-height: 1.6;
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 100vh;
}

.container {
    margin: 0 auto;
    max-width: 900px;
}

/* Header */
header {
    margin: 15px 0;
    background-color: var(--white);
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 5px 20px var(--dark);
    align-items: center;
}

.form-header h1 {
    font-size: 2rem;
    font-weight: 800;
}

.form-header p {
    font-size: 1rem;
    color: var(--medium);
    margin-bottom: 15px;
}

.progress-bar {
    width: 60%;
    margin: 0 auto;
    height: 8px;
    background-color: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress{
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Form */
.project-form {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0px 5px 20px var(--dark);
    padding: 15px;
}

/* fieldset */
fieldset {
    border: none;
    padding: 30px;
    border-bottom: 1px solid var(--border);

}

fieldset:last-of-type {
    border-bottom: none;
}

legend {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary);
    width: 100%;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* labels */
label {
    display: block;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.main-label {
    font-weight: 600;
    font-size: 1rem;
}

.sub-label {
    font-weight: 400;
    color: var(--medium);
    font-size: 0.875rem;
}

.required {
    color: var(--error);
}

.optional {
    color: var(--medium);
    font-weight: 400;
    font-size: 0.875rem;
}

/* input fields */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 80%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 15px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: var(--white);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

input::placeholder,
textarea::placeholder {
    color: var(--medium);
}

/* textarea */
textarea {
    resize: vertical;
    min-height: 120px;
}

/* custom radio buttoms */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
}

.radio-label:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary);
    background: var(--white);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.radio-label input[type="radio"]:checked ~ span {
    font-weight: 500;
}

/* custom checkbox */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
}

.checkbox-label:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content:  '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
}

/* Agreement checkbox */
.agreement-label {
    border: none;
    padding: 0;
    display: flex;
    align-items: flex-start;
}

.agreement-label:hover {
    background: none;
}

.agreement-label span {
    line-height: 1.5;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

/* file upload */
.file-upload-wrapper {
    margin-top: 12px;
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border: 2px dashed var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--light);
}

.file-label:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.file-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.file-text {
    color: var(--medium);
    font-size: 0.95rem;
}

.help-text {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: var(--medium);
}

/* form actions */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding: 32px;
}

/* buttons */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--dark);
    background: var(--light)
}

/* screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* error message */
.error-message {
    display: none;
    color: #D32F2F;
    font-size: 0.9rem;
    margin-top: 5px;
    align-items: center;
    gap: 5px;
}

.error-message::before {
    content: '⚠ ';
    font-weight: bold;
}


