* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Archivo";
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.language-toggle {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 2rem;
    background: #f5f5f5;
}

.lang-btn {
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    min-width: 80px;
    margin-left: 0.5rem;
}

.lang-btn:hover {
    background: #e5e7eb;
}

.lang-btn.active {
    background: #214792;
    border-color: #214792;
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    gap: 15px;
}

.logo img {
    width: 130px;
    height: 100px;
    object-fit: contain;
}

/* Hero Section */
.hero {
    background: url("../assets/images/Banner-image.png") no-repeat center center/cover;
    color: white;
    padding: 4rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 480px;
}

.hero-content {
    flex: 1;
    max-width: 700px;
    margin-left: 6rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
}

.hero .highlight {
    color: #E53B1A;
}

.highlight {
    color: #E53B1A;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 18px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #214792;
    font-weight: 600;
}

.btn-secondary {
    background: rgba(15, 88, 131, 0.33);
    color: white;
    font-weight: 600;
    border: 1px solid white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hero-logo img {
    width: 400px;
    height: 400px;
    object-fit: contain;
    padding-top: 20px;
}

/* Stats Section */
.stats {
    background: #f8fafc;
    padding: 4rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-header {
    text-align: center;
    margin-bottom: 3rem;
}

.stats-header h2 {
    font-size: 2.5rem;
    color: #1f2937;
}

.pledge-count-card {
    text-align: center;
    margin-bottom: 2rem;
}

.card-box {
    padding: 1.5rem;
    /* border: 1px solid #ece9e9; */
    border-radius: 12px;
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); */
    display: inline-block;
    background: #d3d3f129;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #0e4f90;
}

.bledge-sub-head {
    font-size: 1.3rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.Pledge-subtitle-card {
    text-align: center;
    margin-top: 3rem;
}

.Pledge-subtitle-card h2 {
    font-size: 2.5rem;
    color: #e53b1a;
    margin-bottom: 1rem;
}

.Pledge-subtitle-card p {
    font-size: 1.2rem;
    color: #1f2937;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Form Container */
.form-container {
    /* max-width: 600px; */
    margin: 2rem auto;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.back-button {
    background: #ffffff;
    color: #E53B1A;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-top: 2rem;
    cursor: pointer;
    font-size: 1rem;
}

.pledge-info-button {
    background: #ffffff;
    color: #E53B1A;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-top: 2rem;
    cursor: default;
    font-size: 1rem;
}

.back-button:hover {
    background: #eae6e6;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.Individual-back-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 10px;
}

.pledge-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pledge-logos img {
    width: 130px;
    height: 147px;
    object-fit: contain;
}

.pledge-middle-heading {
    color: #e53b1a;
    font-size: 21px;
    font-weight: 700;
}

.pledge-image-container {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.pledge-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-header h2 {
    color: black;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.form-header p {
    color: #6b7280;
    text-align: left;
}

.pledge-text {
    background: #effbf7;
    /* border: 1px solid #85e5c5; */
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pledge-text h3 {
    color: #127550;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.pledge-text ul {
    /* list-style: none; */
    padding: 0;
}

.pledge-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.pledge-point input[type="checkbox"] {
    margin-top: 5px;
    min-width: 18px;
    height: 18px;
}

/* Add this to your css/styles.css file */

/* This container will hold the label and the download link */
.form-label-container {
    display: flex;
    justify-content: space-between;
    /* Pushes label and link to opposite ends */
    align-items: center;
    /* Keeps them vertically aligned */
    width: 100%;
}

/* This styles the download link itself */
.download-link {
    color: #e53e3e;
    /* Red color */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    /* Prevents the link from wrapping to a new line */
}

.download-link:hover {
    text-decoration: underline;
    /* Adds an underline when hovered */
}

/* Optional: Adjust the form-group's label if it has default margins */
.form-group label {
    margin-bottom: 0;
    /* Ensures consistent spacing within the flex container */
}


/* Image Upload Preview Styles */
#image-preview {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.uploaded-image {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #f9fafb;
}

.uploaded-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #d1d5db;
}

.image-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.image-info span {
    font-size: 0.9rem;
    color: #374151;
    word-break: break-word;
}

.uploaded-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f3f4f6;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.remove-file {
    padding: 0.4rem 0.8rem;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.remove-file:hover {
    background-color: #dc2626;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .uploaded-image {
        flex-direction: column;
        align-items: flex-start;
    }

    .image-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .remove-file {
        width: 100%;
    }
}

.pledge-point li {
    /* font-style: italic; */
    font-size: 16px;
    line-height: 1.2;
    color: #1c6197;
    font-weight: 600;
}

/* .conditional-point-8 {
    display: none;
} */

body.lang-ta .conditional-point-8 {
    display: flex;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.file-upload input {
    display: none;
}

.file-upload-icon {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.uploaded-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.remove-file {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

.btn-pledge-submit {
    width: 100%;
    padding: 1rem;
    background: #2669a4;
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pledge-submit:hover {
    background: #1d5280;
}

.institution-process {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.institution-process h3 {
    color: black;
    margin-bottom: 1rem;
}

.process-steps {
    list-style: none;
    padding: 0;
}

.process-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #475569;
}

.process-steps li::before {
    content: '✓';
    background: #22c55e;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}


.link-quadra img {
    max-width: 80px;
    vertical-align: middle;
}

/* Modal */
.modal {
    display: none;
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

/* Footer */
.footer {
    color: #333333;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 0.5rem;

}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 500px;
    margin: 2rem;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 2rem;
    color: white;
}

.modal h2 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.modal p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.reference-number {
    background: #eff6ff;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0 2rem;
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e40af;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-home {
    background: #E53B1A;
    color: white;
}

.btn-secondary-share {
    background: #214792;
    color: white;
}

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .language-toggle,
    .logo-container {
        padding: 0.5rem 1rem;
    }

    .logo img {
        width: 90px;
        height: 70px;
    }

    .hero-logo {
        margin-top: 0rem;
    }

    .hero-logo img {
        width: 300px;
        height: 300px;
        object-fit: contain;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        min-height: auto;

    }

    .hero-content {
        margin-left: 0rem !important
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-logo {
        margin-top: 2rem;
    }

    .stats,
    .container {
        padding: 2rem 1rem;
    }

    .stats-header h2 {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .Pledge-subtitle-card h2 {
        font-size: 1.8rem;
    }

    .Pledge-subtitle-card p {
        font-size: 1rem;
    }

    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .pledge-logos {
        flex-direction: row;
        gap: 0.5rem;
    }

    .pledge-logos img {
        width: 80px;
        height: 90px;
    }

    .pledge-middle-heading {
        font-size: 16px;
    }

    .pledge-image-container {
        height: 200px;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .pledge-text h3 {
        font-size: 1.3rem;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .lang-btn {
        min-width: 70px;
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .logo img {
        width: 70px;
        height: 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .pledge-logos img {
        width: 65px;
        height: 75px;
    }

    .pledge-middle-heading {
        font-size: 14px;
    }
}