/* Karatina University Admissions Portal - Bootstrap Custom Styles */

:root {
    --ku-green: #004d00;
    --ku-orange: #F28C38;
    --ku-dark-green: #003300;
    --ku-light-orange: #FFA500;
}

* {
    transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, var(--ku-green) 0%, #cc8500 100%);
    min-height: 100vh;
    color: #e2e8f0;
    padding-top: 80px;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
}

.logo-img {
    height: 48px;
    width: auto;
}

/* Glass Card Effect */
.glass-card {
    background: rgba(0, 77, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(242, 140, 56, 0.2);
    box-shadow: 0 8px 32px rgba(0, 100, 0, 0.1);
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
}

.hero-text {
    max-width: 600px;
}

/* Services Section */
.services-section {
    padding-bottom: 5rem !important;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 100, 0, 0.1);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 100, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(242, 140, 56, 0.2);
    border-color: rgba(242, 140, 56, 0.3);
}

.service-card h3 {
    color: #2d3748;
}

.service-card p {
    color: #6b7280;
}

/* Icon Wrappers */
.icon-wrapper {
    width: 64px;
    height: 64px;
}

.bg-gradient-green {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.bg-gradient-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #ea580c 0%, var(--ku-orange) 100%);
}

/* Floating Animation */
.floating-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Modals */
.modal-custom {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-custom h3,
.modal-custom h4,
.modal-custom p,
.modal-custom label {
    color: #2d3748;
}

/* Custom Input Groups */
.input-group-custom {
    position: relative;
}

.input-group-custom .form-control,
.input-group-custom .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    padding-left: 3rem;
    color: #2d3748;
}

.input-group-custom .form-control:focus,
.input-group-custom .form-select:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--ku-orange);
    box-shadow: 0 10px 20px rgba(242, 140, 56, 0.2);
    transform: translateY(-2px);
}

.input-icon-custom {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    z-index: 10;
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(45deg, var(--ku-green), var(--ku-orange));
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    background: linear-gradient(45deg, #008000, var(--ku-light-orange));
    transform: translateY(-2px);
    color: white;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover::before {
    left: 100%;
}

/* reCAPTCHA Container */
.recaptcha-container {
    display: flex;
    justify-content: center;
}

/* Status Messages */
.alert-custom {
    border-left: 4px solid;
    border-radius: 0 8px 8px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-error {
    border-left-color: #ef4444;
    color: #dc2626;
}

.alert-success {
    border-left-color: #10b981;
    color: #059669;
}

.alert-info {
    border-left-color: #3b82f6;
    color: #2563eb;
}

/* Result Content Backgrounds */
.bg-info-light {
    background: #dbeafe !important;
}

.bg-success-light {
    background: #d1fae5 !important;
}

.bg-warning-light {
    background: #fed7aa !important;
}

.bg-secondary-light {
    background: #f3f4f6 !important;
}

.text-info-dark {
    color: #1e40af !important;
}

.text-success-dark {
    color: #065f46 !important;
}

.text-warning-dark {
    color: #c2410c !important;
}

.text-secondary-dark {
    color: #374151 !important;
}

/* Success Animation */
.modal.show .modal-content {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* Spinner Override */
#admission-spinner.spinner-border,
#email-spinner.spinner-border,
#programme-spinner.spinner-border,
#fee-spinner.spinner-border {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 2rem !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Prevent text selection on service cards */
.service-card {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* Close button styling */
/*.btn-close {
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0.6;
}

.btn-close:hover {
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 1;
}*/

/* FINAL WORKING CLOSE BUTTON — TESTED 100% */
.btn-close {
    position: relative !important;
    z-index: 1070 !important;
    pointer-events: auto !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 011.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 1em auto !important;
    opacity: 0.75 !important;
    width: 2em;
    height: 2em;
    padding: 0.5em;
}

.btn-close:hover {
    opacity: 1 !important;
}