/**
 * Public Forms Stylesheet
 * Consolidated styles for Alumni, Community registration forms and Contact page
 * 
 * @version 1.0.0
 * @author Tricolor.al
 */

/* ========================================
   CSS Custom Properties (Variables)
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Alumni & Community Form Colors */
    --form-dark: #0f172a;
    --form-darker: #020617;
    --form-primary: #1e293b;
    --form-accent: #dc2626;
    --form-gold: #b45309;
    --form-gold-light: #fcd34d;
    --form-light: #f8fafc;
    --form-text: #334155;
    --form-text-heading: #0f172a;
    --form-text-muted: #64748b;
    --form-border: #e2e8f0;
    --form-surface: #ffffff;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* ========================================
   Form Page Base Styles
   ======================================== */
.form-page-body {
    font-family: var(--font-sans);
    color: var(--form-text);
    background-color: var(--form-light);
    line-height: 1.6;
}

/* ========================================
   Hero Section
   ======================================== */
.form-hero,
.alumni-hero,
.community-hero {
    background: transparent;
    padding: 50px 0 40px;
    position: relative;
    color: var(--form-text);
    text-align: center;
}

.form-hero h1,
.alumni-hero h1,
.community-hero h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--form-text-heading);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.form-hero .subtitle,
.alumni-hero .subtitle,
.community-hero .subtitle {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--form-text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.form-hero .description,
.alumni-hero .description,
.community-hero .description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--form-text-muted);
    font-weight: 400;
}

/* Community-specific hero (slightly different sizing) */
.community-hero h1 {
    font-size: 3rem;
}

.community-hero .subtitle {
    font-size: 1.4rem;
}

.community-hero .description {
    font-size: 1.1rem;
}

/* ========================================
   Form Container & Wrapper
   ======================================== */
.form-page-container,
.alumni-form-container,
.community-form-container {
    padding: 0 0 100px;
    position: relative;
    margin-top: 0;
    z-index: 10;
}

.form-wrapper {
    margin: 0 auto;
}

/* ========================================
   Progress Indicator (Wizard Steps)
   ======================================== */
.form-progress {
    background: var(--form-surface);
    border-radius: 20px;
    padding: 30px 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #f1f1f1;
}

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

.progress-line {
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 1px;
    background: var(--form-border);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--form-surface);
    border: 1px solid var(--form-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.progress-step.active .step-icon {
    background: var(--form-dark);
    border-color: var(--form-dark);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4);
}

.progress-step.completed .step-icon {
    background: var(--form-gold);
    border-color: var(--form-gold);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: var(--form-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active .step-label {
    color: var(--form-dark);
}

/* ========================================
   Form Sections (Wizard Steps)
   ======================================== */
.form-section {
    background: var(--form-surface);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 50px;
    margin-bottom: 30px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: none;
    animation: fadeIn 0.5s ease-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--form-border);
}

.section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--form-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--form-dark);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.section-title-group h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--form-text-heading);
    margin: 0 0 8px;
    font-weight: 600;
}

.section-title-group p {
    font-size: 0.95rem;
    color: var(--form-text-muted);
    margin: 0;
}

/* ========================================
   Form Fields
   ======================================== */
.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--form-text-heading);
    margin-bottom: 8px;
    display: block;
}

.label-required::after {
    content: '*';
    color: var(--form-accent);
    margin-left: 4px;
}

.label-ro {
    font-weight: 400;
    color: #94a3b8;
    font-style: italic;
    font-size: 0.85em;
}

.form-page-container .form-control,
.form-page-container .form-select {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    color: var(--form-text-heading);
}

.form-page-container .form-control:focus,
.form-page-container .form-select:focus {
    background-color: #fff;
    border-color: var(--form-dark);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.05);
    outline: none;
}

.form-page-container textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   Entry Cards (Education, Experience)
   ======================================== */
.entry-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--form-dark);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.entry-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--form-text-heading);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.btn-add-entry {
    width: 100%;
    padding: 18px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: transparent;
    color: var(--form-text-muted);
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.btn-add-entry:hover {
    border-color: var(--form-gold);
    color: var(--form-gold);
    background: #fffbeb;
}

.btn-remove-entry {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-entry:hover {
    background: #ef4444;
    color: white;
}

/* ========================================
   Wizard Navigation Buttons
   ======================================== */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--form-border);
}

.btn-nav {
    padding: 12px 30px;
    border-radius: 99px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-prev {
    background: white;
    border-color: #cbd5e1;
    color: var(--form-text-muted);
}

.btn-prev:hover {
    background: #f1f5f9;
    color: var(--form-text-heading);
}

.btn-next {
    background: var(--form-dark);
    color: white;
}

.btn-next:hover {
    background: var(--form-primary);
    transform: translateX(3px);
}

.btn-submit {
    background: var(--form-gold);
    color: white;
    padding: 12px 40px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-submit:hover {
    background: #92400e;
    transform: translateY(-2px);
}

/* ========================================
   Alerts
   ======================================== */
.alert-modern {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    color: #991b1b;
}

.alert-modern.alert-danger {
    background: #fef2f2;
    color: #dc2626;
}

/* ========================================
   Photo Upload
   ======================================== */
.photo-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: var(--form-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.photo-preview.has-image img {
    display: block;
}

.photo-preview.has-image .photo-placeholder {
    display: none;
}

.file-input-button {
    padding: 12px 24px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    color: var(--form-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* Community-specific photo upload */
.photo-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.photo-upload-area:hover {
    border-color: var(--form-gold);
    background: #fffbeb;
}

.photo-upload-area i {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

.photo-upload-area .photo-preview {
    max-width: 150px;
    max-height: 150px;
    border-radius: 12px;
    margin-top: 10px;
    object-fit: cover;
}

/* ========================================
   Consent Section (Checkboxes)
   ======================================== */
.consent-section {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 16px;
    padding: 30px;
}

.consent-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.consent-item:last-child {
    margin-bottom: 0;
}

/* Checkbox Cards (Community style) */
.checkbox-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-card:hover {
    border-color: var(--form-gold);
}

.checkbox-card.checked {
    border-color: var(--form-gold);
    background: #fffbeb;
}

.checkbox-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.checkbox-card label {
    cursor: pointer;
    font-weight: 500;
}

/* Conditional Fields */
.conditional-field {
    display: none;
    margin-top: 12px;
    padding-left: 32px;
}

.conditional-field.visible {
    display: block;
}

/* ========================================
   Contact Page Specific Styles
   ======================================== */
.contact-hero {
    background: linear-gradient(135deg, var(--form-dark) 0%, var(--form-primary) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.contact-hero h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-info-card {
    background: var(--form-surface);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-info-card i {
    font-size: 2rem;
    color: var(--form-gold);
    margin-bottom: 15px;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 768px) {

    .form-hero h1,
    .alumni-hero h1,
    .community-hero h1 {
        font-size: 2rem;
    }

    .form-hero .subtitle,
    .alumni-hero .subtitle,
    .community-hero .subtitle {
        font-size: 1.2rem;
    }

    .form-section {
        padding: 25px;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
    }

    .step-label {
        display: none;
    }

    .photo-upload-wrapper {
        flex-direction: column;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .progress-line {
        display: none;
    }

    .wizard-nav {
        flex-direction: column;
        gap: 15px;
    }

    .btn-nav {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Contact Page Styles
   ======================================== */
.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.contact-form-section .card {
    border-radius: 10px;
}

.contact-form-section .card-header {
    border-radius: 10px 10px 0 0 !important;
    padding: 1.25rem;
}

.contact-form-section .form-label {
    font-weight: 600;
    color: #333;
}

.contact-form-section .form-control {
    border-radius: 8px;
    padding: 0.75rem;
}

.contact-form-section .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contact-info-card {
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-info-card h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-info-card a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
}

.social-link:hover {
    transform: scale(1.1);
    opacity: 0.85;
    color: #fff;
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.youtube {
    background: #ff0000;
}

.social-link.linkedin {
    background: #0077b5;
}