/* ==========================================
   VN Career Pro - Main Stylesheet
   ========================================== */

/* Reset & Base Styles */
.vncp-holland-test *,
.vncp-admission-calculator *,
.vncp-university-list * {
    box-sizing: border-box;
}

/* ==========================================
   Common Styles
   ========================================== */

.vncp-holland-test,
.vncp-admission-calculator,
.vncp-university-list {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.vncp-test-header,
.vncp-calculator-header,
.vncp-university-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #0073aa;
}

.vncp-test-header h2,
.vncp-calculator-header h2,
.vncp-university-header h2 {
    color: #0073aa;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.vncp-test-description,
.vncp-calculator-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* ==========================================
   Holland Test Styles
   ========================================== */

.vncp-questions-wrapper {
    margin-bottom: 30px;
}

.vncp-question-item {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
    transition: all 0.3s ease;
}

.vncp-question-item:hover {
    background: #f0f7fa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.vncp-question-number {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.vncp-question-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.vncp-answer-options {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.vncp-radio-label {
    position: relative;
    cursor: pointer;
}

.vncp-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.vncp-radio-label span {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.vncp-radio-label input[type="radio"]:checked + span {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    transform: scale(1.1);
}

.vncp-radio-label:hover span {
    border-color: #0073aa;
    transform: scale(1.05);
}

/* ==========================================
   Admission Calculator Styles
   ========================================== */

.vncp-form-section {
    margin-bottom: 35px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
}

.vncp-form-section h3 {
    color: #0073aa;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.vncp-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.vncp-score-input label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.vncp-score-input input[type="number"],
.vncp-score-input select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.vncp-score-input input[type="number"]:focus,
.vncp-score-input select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.vncp-combinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.vncp-combination-option {
    position: relative;
    cursor: pointer;
    display: block;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.vncp-combination-option:hover {
    border-color: #0073aa;
    background: #f0f7fa;
}

.vncp-combination-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.vncp-combination-option input[type="radio"]:checked ~ .vncp-combo-code {
    background: #0073aa;
    color: #fff;
}

.vncp-combination-option input[type="radio"]:checked ~ .vncp-combo-name {
    color: #0073aa;
    font-weight: 600;
}

.vncp-combo-code {
    display: inline-block;
    background: #e7f3f8;
    color: #0073aa;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    margin-right: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vncp-combo-name {
    font-size: 14px;
    color: #555;
    transition: all 0.3s ease;
}

.vncp-bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* ==========================================
   University List Styles
   ========================================== */

.vncp-search-box {
    margin-top: 20px;
}

.vncp-search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.vncp-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.vncp-filter-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.vncp-filter-group {
    flex: 1;
    min-width: 250px;
}

.vncp-filter-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.vncp-filter-select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.vncp-universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
}

.vncp-university-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.vncp-university-card:hover {
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.15);
    border-color: #0073aa;
}

.vncp-university-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.vncp-university-name {
    font-size: 18px;
    color: #0073aa;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.vncp-university-code {
    background: #0073aa;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.vncp-majors-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.vncp-expanded .vncp-majors-list {
    max-height: 2000px;
}

.vncp-major-item {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 3px solid #0073aa;
}

.vncp-major-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.vncp-major-name {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.vncp-major-code {
    background: #e7f3f8;
    color: #0073aa;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

.vncp-major-details {
    font-size: 13px;
    color: #666;
}

.vncp-combinations,
.vncp-tuition {
    margin-bottom: 8px;
}

.vncp-combo-badge {
    display: inline-block;
    background: #fff;
    border: 1px solid #ddd;
    padding: 4px 10px;
    border-radius: 15px;
    margin-right: 8px;
    margin-bottom: 5px;
    font-size: 12px;
}

.vncp-tuition-amount {
    color: #e74c3c;
    font-weight: 600;
}

.vncp-university-actions {
    margin-top: 15px;
    text-align: center;
}

.vncp-btn-detail {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vncp-btn-detail:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.3);
}

/* ==========================================
   Submit Button & Actions
   ========================================== */

.vncp-submit-wrapper {
    text-align: center;
    margin-top: 30px;
}

.vncp-submit-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.vncp-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
}

.vncp-submit-btn:active {
    transform: translateY(-1px);
}

/* ==========================================
   Result Display
   ========================================== */

.vncp-result-wrapper {
    margin-top: 40px;
    padding: 30px;
    background: #f0f7fa;
    border-radius: 10px;
    border: 2px solid #0073aa;
}

.vncp-result-wrapper h3 {
    color: #0073aa;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

/* ==========================================
   Loading Spinner
   ========================================== */

.vncp-loading {
    text-align: center;
    padding: 40px;
}

.vncp-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: vncp-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes vncp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .vncp-holland-test,
    .vncp-admission-calculator,
    .vncp-university-list {
        padding: 20px;
        margin: 20px auto;
    }

    .vncp-test-header h2,
    .vncp-calculator-header h2,
    .vncp-university-header h2 {
        font-size: 22px;
    }

    .vncp-scores-grid,
    .vncp-combinations-grid,
    .vncp-universities-grid {
        grid-template-columns: 1fr;
    }

    .vncp-answer-options {
        flex-wrap: wrap;
    }

    .vncp-radio-label span {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }

    .vncp-filter-section {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .vncp-question-text {
        font-size: 14px;
    }

    .vncp-submit-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* ==========================================
   No Results
   ========================================== */

.vncp-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* ==========================================
   Status Badges
   ========================================== */

.vncp-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.vncp-status-high {
    background: #27ae60;
    color: #fff;
}

.vncp-status-good {
    background: #3498db;
    color: #fff;
}

.vncp-status-medium {
    background: #f39c12;
    color: #fff;
}

.vncp-status-low {
    background: #e74c3c;
    color: #fff;
}

/* ==========================================
   Region Selector Styles
   =========================================== */

/* ==========================================
   Region Selector & Badge Styles
   ========================================== */

.vncp-region-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.vncp-region-option {
    position: relative;
    cursor: pointer;
    display: block;
    padding: 12px 30px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.vncp-region-option:hover {
    border-color: #0073aa;
    background: #f0f7fa;
    transform: translateY(-2px);
}

.vncp-region-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.vncp-region-option input[type="radio"]:checked ~ span {
    color: #fff;
}

.vncp-region-option input[type="radio"]:checked {
    & ~ span {
        color: #fff;
    }
}

.vncp-region-option:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    border-color: #0073aa;
    color: #fff;
}

.vncp-region-option:has(input[type="radio"]:checked) span {
    color: #fff;
}

.vncp-region-badge {
    display: inline-block;
    background: #e7f3f8;
    color: #0073aa;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    border: 1px solid #c5e4f2;
}
