.apply-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.page-header .text-muted {
    color: #666;
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

select.form-control {
    appearance: none;
    background-image: url("../images/arrow-down.svg");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.btn-primary {
    background: #4A90E2;
    color: white;
}

.btn-primary:hover {
    background: #357ABD;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: #dc3545;
    margin-top: 6px;
    font-size: 13px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-text {
    color: #666;
    font-size: 13px;
    margin-top: 6px;
}

.required {
    color: #dc3545;
    margin-left: 4px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 40px 20px;
}

.success-message {
    background-color: #ebf7ed;
    border: 1px solid #d4e9d7;
    color: #1e7b34;
    padding: 40px;
    margin: 0 auto;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.success-message .btn {
    display: inline-block;
    margin-top: 25px;
    background: #28a745;
    min-width: 160px;
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 8px;
}

.success-message .btn:hover {
    background: #218838;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Features checkboxes */
.features-checkbox-container {
    margin-top: 10px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
}

/* Other country input */
#otherCountryContainer {
    margin-top: 15px;
    display: none;
}

/* Language switch */
.language-switch {
    text-align: right;
    margin-bottom: 20px;
}

.language-switch a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f8f9fa;
    color: #4A90E2;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.language-switch a:hover {
    background-color: #e9ecef;
    color: #357ABD;
}

@media (prefers-color-scheme: dark) {
    .apply-container {
        background: #2d2d2d;
    }
    
    .page-header h2 {
        color: #fff;
    }
    
    .page-header .text-muted,
    .form-label {
        color: #ccc;
    }
    
    .form-control {
        background: #333;
        border-color: #444;
        color: #fff;
    }
    
    .form-control:focus {
        border-color: #4A90E2;
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    }
    
    .form-text {
        color: #999;
    }
    
    .success-message {
        background-color: #1e4529;
        border-color: #2a5a3c;
        color: #8fd19e;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    
    .form-actions {
        border-top-color: #444;
    }
    
    select.form-control {
        background-image: url("../images/arrow-down-light.svg");
    }

    .success-message .btn:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    
    .language-switch a {
        background-color: #3a3a3a;
        color: #6da8f7;
    }
    
    .language-switch a:hover {
        background-color: #444;
        color: #8ebcff;
    }
}

@media (max-width: 768px) {
    .apply-container {
        margin: 20px 15px;
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0 !important;
    }

    .success-container {
        min-height: 200px;
        padding: 20px;
    }

    .success-message {
        padding: 30px 20px;
        font-size: 16px;
        margin: 0 15px;
    }

    .success-message .btn {
        width: 100%;
        margin-top: 20px;
        padding: 12px 24px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .checkbox-item {
        padding: 8px 0; /* Increased padding */
    }

    .checkbox-item input[type="checkbox"] {
        margin-right: 12px;
        min-width: 20px; /* Larger checkboxes */
        min-height: 20px;
    }
}
