/* css/vedic-kundli-style.css */
.vedic-kundli-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
}

/* Modern Form Design */
.kundli-form-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.kundli-form-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 20s linear infinite;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, -20px) rotate(360deg); }
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.form-header h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 2.5em;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.form-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2em;
    font-weight: 300;
}

.vedic-form {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.form-section {
    margin-bottom: 30px;
}

.form-section label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: white;
    font-size: 1.1em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
    min-width: 120px;
    padding: 15px 20px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.radio-label:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #ffd700;
    background: #ffd700;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #764ba2;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    left: 4px;
}

.radio-label input[type="radio"]:checked ~ span {
    color: #ffd700;
    font-weight: 600;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-label span {
    color: white;
    transition: color 0.3s ease;
}

.input-group {
    position: relative;
}

.input-group input[type="text"] {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    font-size: 1.1em;
    background: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input[type="text"]::placeholder {
    color: rgba(255,255,255,0.7);
}

.input-group input[type="text"]:focus {
    border-color: #ffd700;
    background: rgba(255,255,255,0.15);
    outline: none;
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.location-input {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.location-input .input-group {
    flex: 1;
}

.add-manual-btn {
    background: linear-gradient(135deg, #ffd700, #ff6b00);
    color: #764ba2;
    border: none;
    padding: 0 25px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95em;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-manual-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255,107,0,0.4);
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-top: 8px;
    display: none;
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
}

.location-suggestion {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    transition: all 0.2s ease;
}

.location-suggestion:hover {
    background: #667eea;
    color: white;
}

.location-suggestion:last-child {
    border-bottom: none;
}

.date-inputs,
.time-inputs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.date-inputs select,
.time-inputs select {
    flex: 1;
    padding: 18px 15px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    font-size: 1.1em;
    background: rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    min-width: 0;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.date-inputs select:focus,
.time-inputs select:focus {
    border-color: #ffd700;
    outline: none;
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.date-inputs select option,
.time-inputs select option {
    background: #764ba2;
    color: white;
    padding: 10px;
}

.generate-btn {
    width: 100%;
    background: linear-gradient(135deg, #ffd700, #ff6b00);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.generate-btn:hover::before {
    left: 100%;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255,107,0,0.4);
}

/* Modern Results Section */
.kundli-results-section {
    background: white;
    border-radius: 25px;
    padding: 0;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 40px;
    border: 1px solid rgba(255,255,255,0.2);
}

.kundli-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.kundli-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.3"/><circle cx="50" cy="30" r="0.5" fill="white" opacity="0.2"/><circle cx="80" cy="20" r="0.8" fill="white" opacity="0.4"/><circle cx="30" cy="60" r="0.6" fill="white" opacity="0.3"/><circle cx="70" cy="70" r="1.2" fill="white" opacity="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
}

.kundli-banner h1 {
    margin: 0;
    font-size: 3.5em;
    font-weight: 800;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.kundli-banner h2 {
    margin: 20px 0 0 0;
    font-size: 2em;
    font-weight: 300;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

/* Rest of the results styles remain similar but with modern touches */
.details-section {
    padding: 50px 40px;
    box-sizing: border-box;
}

.section-title {
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ffd700;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.detail-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 20px;
    border-left: 5px solid #667eea;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-card h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5em;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 12px;
    font-weight: 600;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    min-width: 140px;
    flex-shrink: 0;
    font-size: 1.05em;
}

.detail-value {
    color: #2c3e50;
    text-align: right;
    flex: 1;
    min-width: 150px;
    font-weight: 500;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 80px 30px;
    font-size: 1.3em;
    color: #667eea;
    background: white;
    border-radius: 20px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    margin-left: 15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .vedic-kundli-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .kundli-form-section {
        padding: 30px 25px;
        border-radius: 15px;
    }
    
    .form-header h2 {
        font-size: 2em;
    }
    
    .form-header p {
        font-size: 1.1em;
    }
    
    .radio-label {
        min-width: 100px;
        padding: 12px 15px;
    }
    
    .input-group input[type="text"],
    .date-inputs select,
    .time-inputs select {
        padding: 15px;
        font-size: 1em;
    }
    
    .location-input {
        flex-direction: column;
        gap: 10px;
    }
    
    .add-manual-btn {
        padding: 15px;
        text-align: center;
    }
    
    .generate-btn {
        padding: 18px;
        font-size: 1.2em;
    }
    
    .kundli-banner {
        padding: 40px 25px;
    }
    
    .kundli-banner h1 {
        font-size: 2.5em;
    }
    
    .kundli-banner h2 {
        font-size: 1.5em;
    }
    
    .details-section {
        padding: 30px 25px;
    }
    
    .section-title {
        font-size: 1.8em;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .detail-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .vedic-kundli-container {
        padding: 0 10px;
    }
    
    .kundli-form-section {
        padding: 25px 20px;
    }
    
    .form-header h2 {
        font-size: 1.8em;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .date-inputs,
    .time-inputs {
        flex-direction: column;
    }
    
    .kundli-banner h1 {
        font-size: 2em;
    }
    
    .kundli-banner h2 {
        font-size: 1.3em;
    }
    
    .details-section {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 1.5em;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-label,
    .detail-value {
        min-width: auto;
        text-align: left;
    }
}

/* Animation for form elements */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    animation: slideInUp 0.6s ease-out;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }