/* KalaVistara Specific Styles */

:root {
    --kv-bg: #F8F6F0; /* Lighter beige */
    --kv-dark-green: #244131;
    --kv-gold: #B89C6A;
    --kv-text: #333333;
    --kv-white: #FFFFFF;
}

body {
    background-color: var(--kv-bg);
    color: var(--kv-text);
}

/* Header */
.kv-header {
    background-color: var(--kv-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.kv-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.kv-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--kv-dark-green);
}

.kv-nav-links {
    display: flex;
    gap: 30px;
}

.kv-nav-links a {
    text-decoration: none;
    color: var(--kv-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.kv-nav-links a:hover {
    color: var(--kv-dark-green);
}

.kv-register-btn {
    background-color: var(--kv-dark-green);
    color: var(--kv-white);
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
}
.kv-register-btn:hover {
    background-color: #1a3024;
}

/* Hero Section */
.kv-hero {
    position: relative;
    text-align: center;
    padding: 80px 5% 120px;
    background-color: var(--kv-bg);
}

.kv-subtitle-small {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--kv-gold);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* New Form Styles */
.form-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--kv-dark-green);
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(36, 65, 49, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.form-group.third {
    flex: 1;
}

.sub-label {
    font-size: 1rem;
    color: var(--kv-text);
    margin-bottom: 15px;
    margin-top: 10px;
}

.form-divider {
    border: 0;
    height: 1px;
    background-color: rgba(36, 65, 49, 0.1);
    margin: 30px 0;
}

/* Checkbox Styles */
.checkbox-group.interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); /* Smaller min-size forces more columns */
    gap: 12px;
}

.interest-card {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--kv-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

/* Hide the actual checkbox */
.interest-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 100%; /* Make input cover whole card for broader click capture */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}

/* The visual elements */
.interest-card .icon {
    font-size: 1.5rem;
    color: #888;
    transition: all 0.3s ease;
}

.interest-card span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
    line-height: 1.2;
}

/* Hover State */
.interest-card:hover {
    border-color: var(--kv-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 156, 106, 0.1);
}

.interest-card:hover .icon {
    color: var(--kv-gold);
}

/* Selected State */
.interest-card:has(input[type="checkbox"]:checked) {
    border-color: var(--kv-dark-green);
    background-color: #E8EFEA;
    box-shadow: inset 0 0 0 1px var(--kv-dark-green), 0 4px 12px rgba(36, 65, 49, 0.1);
}

.interest-card:has(input[type="checkbox"]:checked) .icon {
    color: var(--kv-dark-green);
}

.interest-card:has(input[type="checkbox"]:checked) span {
    color: var(--kv-dark-green);
    font-weight: 600;
}

/* Fallback for browsers that don't support :has() - using the sibling selector up to the card */
.interest-card input[type="checkbox"]:checked ~ .icon {
    color: var(--kv-dark-green);
}

.interest-card input[type="checkbox"]:checked ~ span {
    color: var(--kv-dark-green);
    font-weight: 600;
}

/* Selected checkmark indicator */
.interest-card::after {
    content: '\f058'; /* FontAwesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--kv-dark-green);
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.interest-card:has(input[type="checkbox"]:checked)::after {
    opacity: 1;
    transform: scale(1);
}

/* Fallback checkmark for non-has() browsers using an injected element in HTML (we'll modify that next if needed, but modern browsers support has) */

@media (max-width: 600px) {
    .interest-grid {
        grid-template-columns: repeat(3, 1fr); /* Force 3 columns on small screens */
    }
    
    .interest-card span {
        font-size: 0.75rem; /* Smaller text for compact cards */
    }
    .interest-card .icon {
        font-size: 1.2rem;
    }
}
@media (max-width: 400px) {
    .interest-grid {
        grid-template-columns: repeat(2, 1fr); /* Down to 2 on very small screens */
    }
}
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.checkbox-group label,
.checkbox-single label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"],
.checkbox-single input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-single {
    margin-bottom: 15px;
}

textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--kv-text);
    transition: 0.3s;
    resize: vertical;
}

textarea:focus {
    border-color: var(--kv-dark-green);
    outline: none;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.kv-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: var(--kv-dark-green);
    margin-bottom: 15px;
}

.kv-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--kv-text);
    margin-bottom: 30px;
    font-weight: 400;
}

.kv-description {
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-size: 1rem;
    color: #555;
}

.kv-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.kv-btn-primary {
    background-color: var(--kv-dark-green);
    color: var(--kv-white);
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.kv-btn-primary:hover {
    background-color: #1a3024;
}

.kv-btn-secondary {
    background-color: var(--kv-white);
    color: var(--kv-dark-green);
    border: 1px solid var(--kv-dark-green);
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.kv-btn-secondary:hover {
    background-color: var(--kv-dark-green);
    color: var(--kv-white);
}

/* About Section */
.kv-about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 5% 80px;
    display: flex;
    gap: 60px;
    align-items: center;
}

.kv-about-text {
    flex: 6;
}

.kv-about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--kv-dark-green);
    margin-bottom: 25px;
}

.kv-about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #444;
    font-size: 0.95rem;
}

.kv-who-can-join {
    flex: 4;
    background-color: var(--kv-dark-green);
    color: var(--kv-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(36, 65, 49, 0.15);
}

.kv-who-can-join h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 10px;
}

.kv-italic-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    text-align: center;
    color: var(--kv-gold);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.kv-checklist {
    list-style: none;
    padding: 0;
}

.kv-checklist li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.kv-checklist i {
    color: var(--kv-gold);
    margin-top: 4px;
}

/* Program Highlights */
.kv-highlights-section {
    background-color: #EFEBE3;
    padding: 90px 5%;
    text-align: center;
}

.kv-highlights-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--kv-dark-green);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.kv-highlights-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--kv-gold);
}

.kv-highlights-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.kv-highlight-card {
    background-color: var(--kv-white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}
.kv-highlight-card:hover {
    transform: translateY(-5px);
}

.kv-icon {
    width: 50px;
    height: 50px;
    background-color: #E8EFEA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kv-dark-green);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.kv-highlight-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--kv-text);
    margin-bottom: 15px;
}

.kv-highlight-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Curriculum Domains */
.kv-curriculum-section {
    background-color: var(--kv-dark-green);
    color: var(--kv-white);
    padding: 90px 5%;
    text-align: center;
}

.kv-curriculum-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--kv-gold);
    margin-bottom: 15px;
}

.kv-curriculum-desc {
    margin-bottom: 50px;
    font-size: 1rem;
    opacity: 0.9;
}

.kv-curriculum-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.kv-curriculum-card {
    background-color: #325041;
    padding: 35px 30px;
    border-radius: 12px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.05);
}

.kv-curriculum-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--kv-gold);
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.kv-curriculum-card ul {
    list-style: none;
    padding: 0;
}

.kv-curriculum-card li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0e0e0;
}

.kv-curriculum-card li i {
    width: 20px;
    text-align: center;
    color: var(--kv-white);
    opacity: 0.7;
}

/* Registration Section */
.kv-registration-section {
    background-color: var(--kv-bg);
    padding: 100px 5%;
}

.kv-registration-container {
    max-width: 1050px;
    margin: 0 auto;
    background-color: var(--kv-white);
    border-radius: 15px;
    display: flex;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    overflow: hidden;
}

.kv-join-journey {
    flex: 1;
    background-color: var(--kv-dark-green);
    color: var(--kv-white);
    padding: 60px 50px;
}

.kv-join-journey h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--kv-white);
}

.kv-join-journey > p {
    margin-bottom: 45px;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.6;
}

.kv-info-item {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
}

.kv-info-icon {
    color: var(--kv-gold);
    font-size: 1.4rem;
    margin-top: 2px;
}

.kv-info-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.kv-info-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.kv-form-container {
    flex: 1.2;
    padding: 60px 70px;
}

.kv-form-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--kv-text);
    margin-bottom: 35px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--kv-text);
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--kv-dark-green);
    outline: none;
}

.kv-submit-btn {
    width: 100%;
    background-color: var(--kv-dark-green);
    color: var(--kv-white);
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
}

.kv-submit-btn:hover {
    background-color: #1a3024;
}

/* Footer */
.kv-footer {
    background-color: var(--kv-dark-green);
    color: var(--kv-white);
    padding: 80px 5% 25px;
}

.kv-footer-content {
    max-width: 1200px;
    margin: 0 auto 50px;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.kv-footer-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--kv-gold);
    margin-bottom: 20px;
}

.kv-footer-left p {
    font-size: 0.95rem;
    opacity: 0.85;
    max-width: 450px;
    margin-bottom: 35px;
    line-height: 1.6;
}

.kv-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.kv-footer-logo-box {
    background-color: var(--kv-white);
    color: var(--kv-dark-green);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    min-width: 110px;
    line-height: 1.4;
}

.kv-cross {
    color: var(--kv-white);
    opacity: 0.6;
    font-weight: 600;
}

.kv-footer-right {
    min-width: 250px;
}

.kv-footer-right h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--kv-white);
}

.kv-footer-right p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.9;
}

.kv-footer-right i {
    color: var(--kv-gold);
}

.kv-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Media Queries */
@media (max-width: 900px) {
    .kv-about-section {
        flex-direction: column;
    }
    .kv-registration-container {
        flex-direction: column;
    }
    .kv-footer-content {
        flex-direction: column;
    }
    .kv-form-container {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .kv-nav-links {
        display: none;
    }
    .kv-title {
        font-size: 3rem;
    }
    .kv-hero {
        padding: 60px 5% 80px;
    }
}
/* New Form Styles */
.form-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--kv-dark-green);
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(36, 65, 49, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.form-group.third {
    flex: 1;
}

.sub-label {
    font-size: 1rem;
    color: var(--kv-text);
    margin-bottom: 15px;
    margin-top: 10px;
}

.form-divider {
    border: 0;
    height: 1px;
    background-color: rgba(36, 65, 49, 0.1);
    margin: 30px 0;
}

/* Checkbox Styles */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.checkbox-group label,
.checkbox-single label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"],
.checkbox-single input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-single {
    margin-bottom: 15px;
}

textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--kv-text);
    transition: 0.3s;
    resize: vertical;
}

textarea:focus {
    border-color: var(--kv-dark-green);
    outline: none;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
/* New Enhanced Interest Cards */
.interests-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 15px;
}

.interest-category h6 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--kv-gold);
    margin-bottom: 12px;
    font-weight: 600;
}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.interest-card {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--kv-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

/* Hide the actual checkbox */
.interest-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* The visual elements */
.interest-card .icon {
    font-size: 1.5rem;
    color: #888;
    transition: all 0.3s ease;
}

.interest-card span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
    line-height: 1.2;
}

/* Hover State */
.interest-card:hover {
    border-color: var(--kv-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 156, 106, 0.1);
}

.interest-card:hover .icon {
    color: var(--kv-gold);
}

/* Selected State */
.interest-card input[type="checkbox"]:checked ~ .icon {
    color: var(--kv-dark-green);
}

.interest-card input[type="checkbox"]:checked ~ span {
    color: var(--kv-dark-green);
    font-weight: 600;
}

.interest-card:has(input[type="checkbox"]:checked) {
    border-color: var(--kv-dark-green);
    background-color: #E8EFEA;
    box-shadow: inset 0 0 0 1px var(--kv-dark-green), 0 4px 12px rgba(36, 65, 49, 0.1);
}

/* Selected checkmark indicator */
.interest-card::after {
    content: '\f058'; /* FontAwesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--kv-dark-green);
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interest-card:has(input[type="checkbox"]:checked)::after {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 480px) {
    .interest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
