/* Higher Institutions Discovery Tool - Clean Simple Styles */

.institutions-discovery-widget {
    max-width: 1200px;
    margin: 30px auto;
    padding: 40px;
    background: #e8f5e9;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.12);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hidt-header {
    text-align: center;
    margin-bottom: 35px;
}

.hidt-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.hidt-header p {
    font-size: 16px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.hidt-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.hidt-form-group {
    margin-bottom: 20px;
}

.hidt-form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.hidt-form-group input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.hidt-form-group input[type="text"]:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.hidt-submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: #2E7D32;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.hidt-submit-btn:hover:not(:disabled) {
    background: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

.hidt-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hidt-loading::after {
    content: '...';
    animation: hidt-dots 1.5s infinite;
}

@keyframes hidt-dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

.hidt-error {
    background: #fee;
    border-left: 4px solid #f44336;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.hidt-error h4 {
    margin: 0 0 8px 0;
    color: #c62828;
    font-size: 18px;
}

.hidt-error p {
    margin: 0;
    color: #d32f2f;
}

.hidt-results {
    margin-top: 35px;
}

.hidt-results h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 25px 0;
    text-align: center;
}

/* Clean Institution Cards Grid */
#hidtInstitutionsList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

/* Clean Institution Card */
.hidt-institution-card {
    background: white;
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hidt-institution-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.15);
    border-color: #2E7D32;
}

/* Institution Name - Simple Header */
.hidt-inst-name {
    font-size: 20px;
    font-weight: 700;
    color: #2E7D32;
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    line-height: 1.4;
}

/* Location */
.hidt-inst-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
}

.hidt-location-icon {
    font-size: 16px;
}

/* All Detail Sections - Uniform Style */
.hidt-inst-detail {
    margin-bottom: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.hidt-inst-detail:last-child {
    margin-bottom: 0;
}

.hidt-inst-detail strong {
    display: block;
    color: #2E7D32;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #hidtInstitutionsList {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .institutions-discovery-widget {
        padding: 25px 20px;
        margin: 20px 10px;
    }

    .hidt-header h2 {
        font-size: 26px;
    }

    .hidt-form {
        padding: 20px;
    }

    #hidtInstitutionsList {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .institutions-discovery-widget {
        padding: 20px 15px;
    }

    .hidt-header h2 {
        font-size: 22px;
    }

    .hidt-inst-name {
        font-size: 18px;
    }

    .hidt-institution-card {
        padding: 20px;
    }
}