/* Ugadi Special Offer Styles - Final RajCloud Clone with Form */

:root {
    --ugadi-green: #2ecc71;
    --ugadi-purple: #7b2cbf;
    --ugadi-text: #333;
    --ugadi-muted: #666;
    --banner-height: 40px;
}

/* Banner Styles Removed */

/* Modal Styles */
.ugadi-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ugadi-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.ugadi-modal {
    background: #fff;
    color: var(--ugadi-text);
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    position: relative;
    padding: 0; /* No padding here to allow scrolling content to touch edges */
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: modalSlideIn 0.4s ease-out;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border: 3px solid #7b2cbf;
    overflow: visible; /* Important for the close button to stay fixed */
}

.ugadi-modal-scrollable {
    overflow-y: auto;
    padding: 20px;
    flex: 1;
    border-radius: 16px; /* Match parent */
}

@keyframes modalSlideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ugadi-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #d32f2f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100001;
    transition: all 0.2s ease;
    border: 2px solid #f8d7da;
}

.ugadi-modal .close-modal:hover {
    transform: scale(1.1);
    background: #f8d7da;
}

.ugadi-header {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 10px; /* Extra breathing room at the top */
}

.ugadi-header img {
    height: 45px;
    margin-bottom: 10px;
}

.ugadi-stats-banner {
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
}

.ugadi-main-question {
    color: #16a34a; /* RajCloud Green */
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
}

.ugadi-special-label {
    background: #ffd700;
    color: #000;
    display: table;
    margin: 0 auto 20px;
    padding: 4px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ugadi-tools-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    margin-bottom: 20px;
}

.ugadi-tool-col {
    flex: 1;
    text-align: center;
    border-right: 1px solid #eee;
}

.ugadi-tool-col:last-child {
    border-right: none;
}

.ugadi-tool-col i {
    font-size: 1.3rem;
    color: var(--ugadi-purple);
    display: block;
    margin-bottom: 3px;
}

.ugadi-tool-col span {
    font-size: 0.7rem;
    font-weight: 700;
    color: #444;
}

/* Form Styles */
.ugadi-form-wrapper {
    background: #fff;
    border-radius: 8px;
}

.form-intro-text {
    text-align: center;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.form-intro-text span {
    color: #e67e22;
}

.ugadi-input-group {
    margin-bottom: 15px;
}

.ugadi-input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.ugadi-input-group input:focus {
    border-color: var(--ugadi-purple);
}

.ugadi-radio-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-group-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 10px;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.radio-option input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ugadi-submit-btn {
    background: #7b2cbf; /* RajCloud Blue/Purple */
    color: white !important;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.ugadi-submit-btn:hover {
    background: #5a189a;
}

.ugadi-internship-note {
    text-align: center;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #777;
    line-height: 1.4;
}

.ugadi-internship-note b {
    color: #27ae60;
}

@media (max-width: 600px) {
    .ugadi-modal { 
        max-height: 85vh; 
        width: 88%; 
        max-width: 320px;
        padding: 0;
    }
    .ugadi-modal-scrollable {
        padding: 15px;
    }
    .ugadi-header { margin-bottom: 10px; }
    .ugadi-header img { height: 35px; margin-bottom: 5px; }
    .ugadi-stats-banner { font-size: 0.8rem; line-height: 1.2; margin-bottom: 5px; }
    .ugadi-main-question { font-size: 1.1rem; margin-bottom: 10px; }
    .ugadi-special-label { font-size: 0.75rem; padding: 2px 10px; margin-bottom: 10px; }
    .ugadi-tools-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 0; margin-bottom: 10px; }
    .ugadi-tool-col { border: none; flex: 0 0 30%; }
    .ugadi-tool-col i { font-size: 1rem; margin-bottom: 2px; }
    .ugadi-tool-col span { font-size: 0.6rem; }
    
    .form-intro-text { font-size: 0.8rem; margin-bottom: 8px; }
    .ugadi-input-group { margin-bottom: 8px; }
    .ugadi-input-group input { padding: 8px 12px; font-size: 0.8rem; }
    
    .ugadi-radio-section { grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; }
    .radio-group-title { font-size: 0.75rem; margin-bottom: 4px; }
    .radio-option { font-size: 0.75rem; gap: 4px; }
    .radio-option input { width: 14px; height: 14px; }
    
    .ugadi-submit-btn { padding: 10px; font-size: 1rem; }
    .ugadi-internship-note { font-size: 0.7rem; margin-top: 8px; }
    .ugadi-modal .close-modal { 
        top: 8px; 
        right: 8px; 
        width: 32px;
        height: 32px;
        font-size: 1.1rem; 
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
}

/* Fix navbar overlap */
body.has-ugadi-banner .navbar {
    top: var(--banner-height) !important;
}

body.has-ugadi-banner {
    padding-top: var(--banner-height);
}

/* Fix navbar overlap on mobile */
@media (max-width: 968px) {
    body.has-ugadi-banner .nav-links {
        top: calc(81px + var(--banner-height)) !important;
        height: calc(100vh - 81px - var(--banner-height)) !important;
    }
}
