/* Education Interest Form Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fdfdfd;
    color: #333;
    line-height: 1.6;
}

main {
    padding: 0;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #395B3C 0%, #2d4a30 100%);
    color: white;
    padding: 50px 20px;
    margin-bottom: 50px;
}

.hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: #B4B671;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 30px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #B4B671;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Value Proposition Section */
.value-proposition {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.value-proposition h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-item {
    text-align: left;
    padding: 0 10px;
    border-right: 1px solid #ddd;
}

.value-item:last-child {
    border-right: none;
}

.value-header h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
    min-height: 50px;
}

.value-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.value-stat {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.value-item:nth-child(1) .value-stat {
    color: #c4314b;
}

.value-item:nth-child(2) .value-stat {
    color: #1967d2;
}

.value-item:nth-child(3) .value-stat {
    color: #e37400;
}

.value-item:nth-child(4) .value-stat {
    color: #0d9488;
}

.value-detail {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Benefits Section */
.benefits-section {
    background: #f8f9fa;
    padding: 50px 20px;
    margin-bottom: 50px;
}

.benefits-section h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
}

.benefits-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.benefit-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
}

.benefit-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Form Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

form h2 {
    color: #395B3C;
    font-size: 28px;
    margin-bottom: 10px;
    grid-column: 1 / -1;
    text-align: center;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #395B3C;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Custom Multi-Select Styles */
.custom-multiselect {
    position: relative;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
    padding: 6px;
    cursor: text;
    transition: border-color 0.3s;
    min-height: 42px;
}

.custom-multiselect:focus-within {
    border-color: #395B3C;
}

.selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.selected-item {
    display: inline-flex;
    align-items: center;
    background-color: #395B3C;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 13px;
}

.selected-item .remove {
    margin-left: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
}

.search-input {
    border: none !important;
    padding: 4px !important;
    font-size: 13px;
    width: 100%;
}

.search-input:focus {
    outline: none;
    border: none !important;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: -2px;
    right: -2px;
    background: white;
    border: 2px solid #395B3C;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dropdown-list.active {
    display: block;
}

.dropdown-list div {
    padding: 8px 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 13px;
}

.dropdown-list div:hover {
    background-color: #f0f0f0;
}

.dropdown-list div.selected {
    background-color: #e8f5e9;
    color: #395B3C;
}

.no-results {
    padding: 8px 10px;
    color: #999;
    text-align: center;
    font-style: italic;
    font-size: 13px;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
    font-size: 13px;
}

.checkbox-group a {
    color: #395B3C;
    text-decoration: underline;
}

/* Submit Button */
button[type="submit"] {
    background-color: #395B3C;
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    justify-self: center;
}

button[type="submit"]:hover {
    background-color: #2d4a30;
}

button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Loading Spinner */
#loadingSpinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #395B3C;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-wrapper {
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .value-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .value-item {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
    }

    .value-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-image {
        order: -1; /* Move image above content on mobile */
    }

    .hero-image img {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .value-proposition h2,
    .benefits-section h2 {
        font-size: 24px;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .value-item {
        text-align: center;
    }

    .value-header h3 {
        min-height: auto;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .container {
        padding: 20px;
    }

    form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    form h2 {
        font-size: 22px;
    }

    button[type="submit"] {
        width: 100%;
    }
}

/* Error Messages */
.error-message {
    background-color: #fee;
    border-left: 4px solid #f44;
    color: #c00;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.success-message {
    background-color: #efe;
    border-left: 4px solid #4a4;
    color: #060;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}