:root {
    --primary-color: #2563eb;
    --error-color: #dc2626;
    --success-color: #16a34a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #191A1F;
    color: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 4vw 1rem 4vw;
    background: transparent;
    max-width: 1200px;
    margin: 0 auto;
}
.header-logo {
    height: 48px;
}
.header-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}
.header-nav a:hover {
    color: #FF6F1F;
}

main {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55vh;
    text-align: center;
    margin-top: 0;
}
.hero-content {
    width: 100%;
}
.hero-logo {
    width: 80px;
    margin-bottom: 1.5rem;
}
.hero h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.03em;
    font-size: 3.8rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    letter-spacing: -1px;
}
.hero-subtitle {
    color: #FFB26B;
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}
.hero-cta {
    display: inline-block;
    background: #FF6F1F;
    color: #fff;
    font-weight: 600;
    font-size: 1.3rem;
    padding: 1.1rem 2.8rem;
    border-radius: 32px;
    text-decoration: none;
    box-shadow: 0 2px 16px 0 rgba(255,111,31,0.10);
    transition: background 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
    background: #ff8c42;
    box-shadow: 0 4px 24px 0 rgba(255,111,31,0.18);
}

.features {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 0 0 0 0;
    flex-wrap: wrap;
}
.feature-card {
    background: #23242A;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    flex: 1 1 180px;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
    margin: 0 auto;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 6px 24px 0 rgba(255,111,31,0.10);
}
.feature-card i {
    font-size: 2.2rem;
    color: #FF6F1F;
    margin-bottom: 1rem;
}
.feature-card h3 {
    margin: 0.5rem 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}
.feature-card p {
    color: #bdbdbd;
    font-size: 0.98rem;
    margin: 0;
}

.form-section {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    margin-top: 3rem;
}
.grant-form {
    background: #23242A;
    border-radius: 18px;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    width: 100%;
    max-width: 480px;
}
.grant-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
}
.form-group {
    margin-bottom: 1.3rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #FFB26B;
    font-weight: 500;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: none;
    background: #191A1F;
    color: #fff;
    font-size: 1rem;
    margin-top: 0.1rem;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #FF6F1F;
    background: #23242A;
}
.submit-btn {
    width: 100%;
    background: #FF6F1F;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 0;
    border: none;
    border-radius: 32px;
    margin-top: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}
.submit-btn:hover {
    background: #ff8c42;
}

.footer {
    background: transparent;
    padding: 2.5rem 0 1.5rem 0;
    border-top: 1px solid #23242A;
    margin-top: 2rem;
}
.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #bdbdbd;
    font-size: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1rem;
}
.footer-links a {
    color: #bdbdbd;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #FF6F1F;
}

@media (max-width: 900px) {
    .features {
        flex-direction: column;
        align-items: stretch;
    }
    .feature-card {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 2vw 1rem 2vw;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

.custom-multiselect {
    position: relative;
    background: #191A1F;
    border-radius: 8px;
    border: 1.5px solid #23242A;
    cursor: pointer;
    min-height: 48px;
    padding: 0.8rem 1rem;
    transition: border-color 0.2s;
    user-select: none;
    margin-top: 0.2rem;
}
.custom-multiselect:focus-within, .custom-multiselect.active {
    border-color: #FF6F1F;
    box-shadow: 0 0 0 2px rgba(255, 111, 31, 0.13);
}
.selected-options {
    color: #fff;
    font-size: 1rem;
    min-height: 1.2em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    align-items: center;
    justify-content: space-between;
}
.options-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #23242A;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
    z-index: 10;
    margin-top: 0.2em;
    padding: 0.7em 1em;
    max-height: 220px;
    overflow-y: auto;
}
.custom-multiselect.active .options-list {
    display: block;
}
.options-list label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #fff;
    padding: 0.3em 0;
    cursor: pointer;
    transition: color 0.2s;
}
.options-list input[type="checkbox"] {
    accent-color: #FF6F1F;
    margin-right: 0.7em;
    width: 1.1em;
    height: 1.1em;
}
.options-list label:hover {
    color: #FF6F1F;
}
.selected-tag {
    background: #FF6F1F;
    color: #fff;
    border-radius: 0.5em;
    padding: 0.2em 0.7em;
    font-size: 0.95em;
    margin-right: 0.2em;
    display: inline-flex;
    align-items: center;
}
.selected-tag .remove-tag {
    margin-left: 0.4em;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
} 
.highlight {
    background: linear-gradient(90deg, #00C6FB, #005BEA, #FF61A6, #FFB86C);
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    font-style: italic;
    font-weight: bold;
    animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

.inline-logo {
    height: 2.1em;
    width: auto;
    vertical-align: middle;
    margin-right: 0.03em;
    margin-bottom: 0.08em;
    display: inline-block;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(255, 111, 31, 0.10);
    background: #fff;
    padding: 0.08em;
    transform: skew(-14deg);
}

.form-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    gap: 0.7rem;
}
.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #393A40;
    display: inline-block;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    border: 2px solid #23242A;
}
.dot.active {
    background: #FF6F1F;
    transform: scale(1.18);
    border-color: #FFB26B;
}
.form-step {
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
}
.next-btn, .back-btn {
    width: auto;
    min-width: 120px;
    flex: 1 1 0;
}
.next-btn {
    background: #FF6F1F;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 0;
    border-radius: 32px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.next-btn:hover {
    background: #ff8c42;
}
.back-btn {
    background: #23242A;
    color: #FF6F1F;
    border: 2px solid #FF6F1F;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 0;
    border-radius: 32px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.back-btn:hover {
    background: #191A1F;
    color: #fff;
    border-color: #ff8c42;
}
.form-step {
    text-align: center;
}

/* Hide default arrow for custom multiselect if any */
.custom-multiselect select,
.custom-multiselect .selected-options::-ms-expand {
    display: none;
}
.custom-multiselect .selected-options {
    /* Remove default dropdown arrow for all browsers */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Base responsive styles */
@media (max-width: 1200px) {
    .header {
        padding: 1.5rem 2vw;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }

    .features {
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

/* Tablet and smaller desktop */
@media (max-width: 900px) {
    .features {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .feature-card {
        max-width: 100%;
        margin-bottom: 0;
        padding: 2rem;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 2vw;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero-cta {
        font-size: 1.1rem;
        padding: 0.9rem 2.2rem;
    }

    .grant-form {
        margin: 0 1.5rem;
    }
}

/* Mobile devices */
@media (max-width: 600px) {
    .header {
        padding: 1rem 1vw;
    }
    
    .header-nav {
        display: flex;
        gap: 1rem;
        justify-content: center;
        width: 100%;
    }
    
    .header-nav a {
        margin-left: 0;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        background: rgba(255, 111, 31, 0.1);
        border-radius: 20px;
        transition: background 0.2s;
    }

    .header-nav a:hover {
        background: rgba(255, 111, 31, 0.2);
    }
    
    .hero {
        min-height: 45vh;
        margin-top: 1rem;
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        line-height: 1.4;
    }
    
    .hero-cta {
        font-size: 1rem;
        padding: 0.8rem 1.8rem;
        width: 100%;
        max-width: 280px;
    }
    
    .grant-form {
        padding: 1.5rem 1rem;
        margin: 0 1rem;
    }
    
    .grant-form h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        font-size: 1rem;
        padding: 0.8rem 0;
    }
    
    .footer {
        padding: 1.5rem 0 1rem 0;
    }
    
    .footer-content {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .footer-links a {
        margin: 0;
        padding: 0.3rem 0.6rem;
        background: rgba(255, 111, 31, 0.1);
        border-radius: 15px;
    }

    .form-nav {
        gap: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .next-btn, .back-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .custom-multiselect {
        font-size: 0.9rem;
    }
    
    .options-list {
        padding: 0.5rem;
    }
    
    .options-list label {
        padding: 0.4rem 0.6rem;
    }
    
    .selected-tag {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }

    .form-dots {
        margin-top: 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-card i {
        font-size: 1.8rem;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }

    .header-nav a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .grant-form {
        padding: 1.2rem 0.8rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem 0.7rem;
    }
}

/* Fix for very small screens */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .header-nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .grant-form {
        padding: 1rem 0.6rem;
    }

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

/* Success Popup Responsive Styles */
@media (max-width: 600px) {
    .success-popup-content {
        padding: 1.5rem;
        width: 85%;
        margin: 0 1rem;
    }
    
    .success-popup-content i {
        font-size: 2.5rem;
    }
    
    .success-popup-content h3 {
        font-size: 1.3rem;
    }
    
    .success-popup-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .success-popup .close-popup {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
    }
}

/* Success Popup Styles */
.success-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.success-popup.active {
    display: flex;
}

.success-popup-content {
    background: #23242A;
    padding: 2rem;
    border-radius: 18px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    animation: popupFadeIn 0.3s ease-out;
}

.success-popup-content i {
    color: #16a34a;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-popup-content h3 {
    color: #FFB26B;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.success-popup-content p {
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.success-popup .close-popup {
    background: #FF6F1F;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 32px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.success-popup .close-popup:hover {
    background: #ff8c42;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}