/* AI-Powered Employment Hack Certification Form Styles */

:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --tertiary-dark: #2a2a2a;
    --accent-red: #dc2626;
    --accent-red-hover: #b91c1c;
    --accent-red-light: rgba(220, 38, 38, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #333333;
    --success-green: #10b981;
    --warning-yellow: #f59e0b;
    --gradient-primary: linear-gradient(135deg, var(--accent-red), #7c2d12);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-dark), var(--tertiary-dark));
    --shadow-primary: 0 4px 20px rgba(220, 38, 38, 0.3);
    --shadow-secondary: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(220, 38, 38, 0.08) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.floating-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(220, 38, 38, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(220, 38, 38, 0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.1), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 50s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-100px) translateX(50px); }
}

/* Container and Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.4));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.4)); }
    50% { filter: drop-shadow(0 6px 20px rgba(220, 38, 38, 0.6)); }
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Form Container */
.form-container {
    background: var(--gradient-secondary);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-secondary);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: formSlideUp 1.2s ease-out 0.3s both;
}

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

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Form Grid */
.form-grid {
    display: grid;
    gap: 2rem;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header i {
    color: var(--accent-red);
    font-size: 1.2rem;
}

.section-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Form Rows and Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--tertiary-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px var(--accent-red-light);
    transform: translateY(-2px);
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.form-group input:focus + .input-focus-line,
.form-group textarea:focus + .input-focus-line {
    width: 100%;
}

/* Attendance Grid */
.attendance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.attendance-item {
    position: relative;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--tertiary-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.checkbox-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.5s ease;
}

.checkbox-label:hover::before {
    left: 100%;
}

.checkbox-label:hover {
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

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

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

.attendance-item input[type="checkbox"]:checked + .checkbox-label {
    background: var(--accent-red-light);
    border-color: var(--accent-red);
}

.day-title {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.day-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Status Selection */
.status-selection {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

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

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--tertiary-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

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

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-group input[type="radio"]:checked + .radio-label .radio-custom {
    border-color: var(--accent-red);
}

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

.radio-group input[type="radio"]:checked + .radio-label {
    background: var(--accent-red-light);
    border-color: var(--accent-red);
}

/* Star Rating */
.star-rating {
    margin-bottom: 1.5rem;
}

.rating-label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
    justify-content: flex-end;
}

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

.star-label {
    font-size: 2rem;
    color: var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-label:hover,
.stars input[type="radio"]:checked ~ .star-label,
.star-label:hover ~ .star-label {
    color: var(--warning-yellow);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    transform: scale(1.1);
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    margin: 2rem 0;
}

.privacy-icon {
    color: var(--success-green);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.privacy-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Submit Section */
.submit-section {
    text-align: center;
    margin-top: 2rem;
}

.submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-primary);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4);
}

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

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:active .btn-ripple {
    width: 300px;
    height: 300px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-secondary);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-secondary);
    border: 1px solid var(--border-color);
    max-width: 400px;
    width: 90%;
}

.success-icon {
    color: var(--success-green);
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: successPulse 1s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-content p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-btn {
    padding: 0.8rem 2rem;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .attendance-grid {
        grid-template-columns: 1fr;
    }
    
    .status-selection {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stars {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .logo {
        height: 60px;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .submit-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .submit-btn {
    background: var(--text-muted);
}

.loading .submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
