/**
 * Report An Issue Page Styles
 * Modern, accessible design with enhanced UX
 */

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #00a86b;
    --accent-color: #ffa500;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --text-dark: #333;
    --text-light: #666;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
}

.cesi-report-issue-page {
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.required {
    color: var(--danger-color);
    font-weight: 700;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Hero Section */
.report-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5282 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.report-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(220, 53, 69, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-icon {
    margin: 0 auto 30px;
    width: 100px;
    height: 100px;
    background: rgba(220, 53, 69, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger-color);
}

.hero-icon svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.page-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: 1.6rem;
    color: white;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Why Report Section */
.why-report-section {
    padding: 100px 0;
    background: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.content-text h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.2;
}

.lead {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 700;
}

.content-text p {
    font-size: 1.3rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Impact Stats */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--light-bg);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Issue Types Preview */
.issue-types-preview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.issue-type-card {
    padding: 30px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.issue-type-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.issue-type-card.safety {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
}

.issue-type-card.safety:hover {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
}

.issue-type-card.outdated {
    border-color: var(--warning-color);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.02) 100%);
}

.issue-type-card.outdated:hover {
    border-color: var(--warning-color);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
}

.issue-type-card.inaccuracy {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.05) 0%, rgba(255, 165, 0, 0.02) 100%);
}

.issue-type-card.inaccuracy:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
}

.issue-type-card svg {
    margin-bottom: 15px;
    color: inherit;
}

.issue-type-card.safety svg {
    color: var(--danger-color);
}

.issue-type-card.outdated svg {
    color: var(--warning-color);
}

.issue-type-card.inaccuracy svg {
    color: var(--accent-color);
}

.issue-type-card h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.issue-type-card p {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Report Form Section */
.report-form-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--border-color);
}

.form-header h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.form-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Form Sections */
.form-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.section-title svg {
    color: var(--secondary-color);
    flex-shrink: 0;
}

/* Radio Cards */
.radio-group {
    display: grid;
    gap: 15px;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border: 3px solid var(--border-color);
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.radio-card:hover .radio-content {
    border-color: var(--secondary-color);
    background: rgba(0, 168, 107, 0.02);
    transform: translateX(5px);
}

.radio-card input[type="radio"]:checked + .radio-content {
    border-color: var(--secondary-color);
    background: rgba(0, 168, 107, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.1);
}

.radio-content svg {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.radio-text {
    flex: 1;
}

.radio-text strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.radio-text span {
    font-size: 1.05rem;
    color: var(--text-light);
}

/* Form Rows and Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.15rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.field-help {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 8px;
    font-style: italic;
}

.char-counter {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 8px;
    text-align: right;
}

/* File Upload Area */
.file-upload-area {
    position: relative;
}

.file-upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    background: var(--light-bg);
    transition: all 0.3s ease;
}

.file-upload-area:hover .upload-placeholder {
    border-color: var(--secondary-color);
    background: rgba(0, 168, 107, 0.05);
}

.upload-placeholder svg {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.upload-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.upload-placeholder span {
    font-size: 1rem;
    color: var(--text-light);
}

.photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

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

.photo-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.photo-remove:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Checkbox Group */
.checkbox-group {
    margin-top: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 15px 20px;
    background: var(--light-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(0, 168, 107, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.checkbox-label span {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    gap: 15px;
    padding: 25px;
    background: rgba(0, 168, 107, 0.05);
    border-left: 4px solid var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 40px;
}

.privacy-notice svg {
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.privacy-notice p {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-submit {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.35);
    min-width: 220px;
}

.btn-submit:hover {
    background: #00c97d;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 168, 107, 0.45);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

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

.btn-reset:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
}

/* Form Messages */
.form-message {
    padding: 20px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 25px;
    animation: slideDown 0.3s ease-out;
}

.form-message.success {
    background: rgba(0, 168, 107, 0.1);
    border: 2px solid var(--secondary-color);
    color: #006644;
}

.form-message.error {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid var(--danger-color);
    color: #a71d2a;
}

/* What Happens Next Section */
.what-next-section {
    padding: 100px 0;
    background: white;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 70px;
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 40px;
}

.timeline-step {
    display: flex;
    gap: 30px;
    align-items: start;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #00c97d 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 168, 107, 0.35);
}

.step-content {
    flex: 1;
    padding-top: 8px;
}

.step-content h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.step-content p {
    font-size: 1.25rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.faq-item {
    padding: 30px;
    background: white;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.faq-item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.faq-item p {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
}

/* Contact CTA Section */
.contact-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5282 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(0, 168, 107, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: white;
}

.cta-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.35);
}

.btn-primary:hover {
    background: #00c97d;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 168, 107, 0.45);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: var(--light-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.35);
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .impact-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .page-title {
        font-size: 3rem;
    }

    .page-subtitle {
        font-size: 1.3rem;
    }

    .content-text h2,
    .section-title {
        font-size: 2.5rem;
    }

    .form-wrapper {
        padding: 30px 25px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2.2rem;
    }

    .hero-icon {
        width: 70px;
        height: 70px;
    }

    .hero-icon svg {
        width: 50px;
        height: 50px;
    }

    .form-wrapper {
        padding: 25px 20px;
    }

    .radio-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .timeline-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }
}
