/* 
 * CV Europass Platform - Apple-style Design
 * Clean, minimalistic and modern interface
 */

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #f5f5f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.logo p {
    font-size: 16px;
    color: #86868b;
    font-weight: 400;
}

.language-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 8px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 20px;
    text-decoration: none;
    color: #86868b;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background-color: #f5f5f7;
    border-color: #86868b;
}

.lang-btn.active {
    background-color: #007aff;
    border-color: #007aff;
    color: white;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 0;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    color: #86868b;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.feature p {
    font-size: 16px;
    color: #86868b;
    line-height: 1.5;
}

/* Form Section */
.cv-form-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.form-container h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
    text-align: center;
}

.form-container p {
    font-size: 18px;
    color: #86868b;
    text-align: center;
    margin-bottom: 40px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f2f2f2;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.form-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #007aff;
    border-radius: 2px;
    margin-right: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: #f9f9f9;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007aff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    font-size: 14px;
    color: #86868b;
    margin-top: 6px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.checkbox-group label {
    margin-bottom: 0;
    line-height: 1.5;
}

/* Experience and Education Items */
.experience-item,
.education-item {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #f2f2f2;
}

.experience-item h4,
.education-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: #007aff;
    color: white;
}

.btn-primary:hover {
    background: #0056cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-secondary {
    background: #f2f2f2;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}

.btn-secondary:hover {
    background: #e5e5e7;
    transform: translateY(-1px);
}

.form-actions {
    text-align: center;
    margin-top: 40px;
}

/* Success Page Styles */
.success-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 0;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 30px;
}

.success-section h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.success-message {
    font-size: 20px;
    color: #86868b;
    max-width: 600px;
    margin: 0 auto;
}

.download-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.download-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 30px;
    text-align: center;
}

.pdf-downloads {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.pdf-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 16px;
    border: 1px solid #f2f2f2;
}

.pdf-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pdf-icon {
    font-size: 32px;
}

.pdf-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.pdf-details p {
    font-size: 14px;
    color: #86868b;
}

.btn-download {
    background: #007aff;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-download:hover {
    background: #0056cc;
    transform: translateY(-1px);
}

.download-all-container {
    text-align: center;
}

.btn-download-all {
    display: inline-block;
    background: #34c759;
    color: white;
    padding: 18px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.2s ease;
}

.btn-download-all:hover {
    background: #28a745;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.email-section,
.actions-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.email-section h3,
.actions-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.email-address {
    font-size: 18px;
    font-weight: 500;
    color: #007aff;
    margin-top: 15px;
    padding: 12px 20px;
    background: #f0f8ff;
    border-radius: 10px;
    display: inline-block;
}

.action-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.action-item {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 16px;
    border: 1px solid #f2f2f2;
}

.action-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.action-item p {
    font-size: 16px;
    color: #1d1d1f;
    font-weight: 500;
}

.back-section {
    text-align: center;
    margin-top: 40px;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    font-size: 16px;
    color: #86868b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .cv-form-section {
        padding: 25px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .pdf-item {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .action-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .cv-form-section {
        padding: 20px 15px;
    }
    
    .form-container h2 {
        font-size: 24px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section,
.cv-form-section,
.success-section,
.download-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus states for accessibility */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Loading states */
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}
