/* HEADLINE SECTION */
.headline {
    text-align: center;
    margin-bottom: 3rem;
}

.headline h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.headline p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* PARTNER GRID */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.partner-card {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.partner-card .logo-container {
    margin-bottom: 1.5rem;
    height: 60px; /* Fixed height for alignment */
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-card .logo-container img {
    max-width: 150px;
    max-height: 50px;
    object-fit: contain;
}

.partner-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.partner-card .category {
    font-size: 0.85rem;
    color: var(--secondary-color);
    background-color: var(--background-light);
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.partner-card .description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes button to the bottom */
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.btn-visit:hover {
    background-color: var(--primary-color);
    color: var(--background-white);
}

/* CALL-TO-ACTION BLOCK */
.cta-block {
    background-color: var(--background-white);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.cta-block h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-block .cta-subtitle {
    margin-bottom: 1.5rem; 
    color: var(--text-light);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--background-white);
}

.btn-primary:hover {
    background-color: rgb(34, 34, 253);
    transform: scale(1.05);
}



#partnerForm h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

#partnerForm .form-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

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

.form-group.checkbox-group {
    display: flex;
    align-items: center;
}

.form-group.checkbox-group input {
    width: auto;
    margin-right: 0.75rem;
}

.form-group.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
}

.form-error {
    color: #dc3545;
    font-size: 0.875em;
    display: none; /* Hidden by default */
    margin-top: 0.25rem;
}

#consent-error {
    margin-top: -1rem;
    margin-bottom: 1rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .partner-grid {
        grid-template-columns: 1fr;
    }

    .headline h1 {
        font-size: 2rem;
    }

    .cta-block h2 {
        font-size: 1.5rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px; /* Slightly more modern radius */
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #0d6efd; /* A nice blue */
    color: white;
}
.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: #6c757d;
    color: white;
}
.btn-secondary:hover {
    background-color: #5c636a;
    transform: translateY(-2px);
}

/* --- Modal Overlay & Content --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff; /* White background */
    color: #333;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 0px;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2.05rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}
.modal-close-btn:hover {
    color: #333;
}

/* --- Selection Screen --- */
#selectionScreen {
    text-align: center;
}
#modalTitle, #companyFormContainer h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.form-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}
.selection-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.selection-buttons .btn {
    min-width: 200px;
}
.selection-buttons i {
    margin-right: 0.5rem;
}

/* --- Form Container & General Styles --- */
.form-container {
    position: relative;
}
.back-btn {
    position: absolute;
    top: -2rem;
    left: 0;
    background: none;
    border: none;
    color: #0d6efd;
    cursor: pointer;
    font-size: 1rem;
}
.back-btn:hover {
    text-decoration: underline;
}

.form-header-note {
    background-color: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f8f9fa;
    transition: all 0.2s ease-in-out;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #86b7fe;
    background-color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}
.form-group input[type="file"] {
    padding: 0.5rem;
}

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

/* Validation & Error Styling */
.form-error {
    color: #dc3545;
    font-size: 0.875em;
    display: none;
    margin-top: 0.25rem;
}
.form-group .is-invalid {
    border-color: #dc3545;
    background-color: #fff6f6;
}
.form-group .is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220,53,69,.25);
}

/* Submit Button with Spinner */
.submit-btn {
    width: 100%;
    position: relative;
    min-height: 48px;
}
.submit-btn .spinner {
    display: none;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    width: 24px;
    height: 24px;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.submit-btn.loading .btn-text {
    visibility: hidden;
}
.submit-btn.loading .spinner {
    display: block;
}
@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 600px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }
    .selection-buttons {
        flex-direction: column;
    }
}