/* Variables */
:root {
    --primary: #4e54c8;
    --primary-light: #8f94fb;
    --secondary: #ff7e5f;
    --secondary-light: #feb47b;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --bg-light: #ffffff;
    --bg-grey: #f8f9fa;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary);
}

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(78, 84, 200, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(255, 126, 95, 0.4);
}

/* Header */
header {
    background: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    margin-right: 10px;
    font-size: 28px;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #555;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Calendar Styles */
.floating-calendar {
    position: relative;
    margin: 50px auto 0;
    width: 90%;
    max-width: 600px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: white;
    padding: 20px;
    text-align: left;
    transition: box-shadow 0.4s ease;
}

.floating-calendar.highlighted {
    box-shadow: 0 0 0 4px var(--primary-light), var(--shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.1), rgba(143, 148, 251, 0.1));
    border-radius: var(--border-radius);
}

.calendar-month {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.calendar-nav i {
    cursor: pointer;
    color: var(--primary);
    padding: 8px;
    border-radius: 50%;
    background-color: rgba(78, 84, 200, 0.1);
    transition: all 0.3s ease;
}

.calendar-nav i:first-child {
    margin-right: 12px;
}

.calendar-nav i:hover {
    transform: scale(1.1);
    background-color: var(--primary);
    color: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
}

.calendar-day {
    padding: 8px 6px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden;
    word-wrap: break-word;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: white;
}

.calendar-day:hover {
    background-color: rgba(78, 84, 200, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.day-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 8px;
    min-height: auto;
    padding: 4px;
    background-color: rgba(78, 84, 200, 0.05);
    border-radius: 4px;
}

.day-number {
    font-size: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
}

.today {
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.holiday {
    background-color: rgba(78, 84, 200, 0.05);
}

.holiday-marker {
    font-size: 11px;
    color: var(--primary);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    width: 100%;
    margin-top: auto;
    line-height: 1.3;
    padding: 4px;
    background-color: rgba(78, 84, 200, 0.1);
    border-radius: 4px;
    margin-bottom: 2px;
    font-weight: 500;
}

.nameday-marker {
    font-size: 11px;
    color: var(--secondary);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    width: 100%;
    margin-top: auto;
    line-height: 1.3;
    padding: 4px;
    background-color: rgba(255, 126, 95, 0.1);
    border-radius: 4px;
    margin-bottom: 2px;
    font-weight: 500;
}

.calendar-summary-info {
    max-width: 600px;
    margin: 15px auto 0;
    padding: 10px 15px;
    font-size: 14px;
    color: var(--text-dark);
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    text-align: center;
    min-height: 20px;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.calendar-summary-info.visible {
    opacity: 1;
}

/* Personalization Section */
#personalization-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
    display: none;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

#personalization-section.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#personalization-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 28px;
}

.personalization-group {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(78, 84, 200, 0.1);
}

.personalization-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.personalization-group h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.personalization-group h3 i {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
}

.checkbox-group label,
.select-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.checkbox-group div {
    margin-bottom: 8px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--primary);
    cursor: pointer;
    transform: scale(1.1);
}

.checkbox-group label span {
    cursor: pointer;
}

.select-group select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.select-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.1);
}

/* Build Calendar Button */
#buildCalendarBtn {
    width: 100%;
    padding: 16px;
    margin-top: 30px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    border-radius: var(--border-radius);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
}

#buildCalendarBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 84, 200, 0.4);
}

#buildCalendarBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(78, 84, 200, 0.3);
}

/* Status Message */
#personalization-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
    background: rgba(78, 84, 200, 0.1);
    color: var(--primary);
    display: none;
}

#personalization-status.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    font-size: 28px;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background-color: var(--bg-grey);
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin-top: 50px;
    position: relative;
    gap: 30px;
}

.step {
    width: 250px;
    text-align: center;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    margin: 0 auto 20px;
    flex-shrink: 0;
}

.step h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.step p {
    color: #666;
    font-size: 16px;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.accordion {
    max-width: 800px;
    margin: 50px auto 0;
}

.accordion-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    background-color: #fff;
    position: relative;
    z-index: 2;
}

.accordion-header i {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.accordion-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: var(--bg-grey);
}

.accordion-body p {
    padding-bottom: 20px;
    color: #666;
    margin-top: 0;
}

.accordion-item.active .accordion-body {
    max-height: 300px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
    justify-content: center;
}

.contact-info {
    min-width: 300px;
    max-width: 450px;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
    align-items: center;
}

.contact-icon {
    margin-right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-text h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-text p {
    color: #666;
}

.contact-text p a {
    color: var(--primary);
    transition: color 0.3s ease;
}

.contact-text p a:hover {
    color: var(--primary-light);
}

.social-links {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(78, 84, 200, 0.3);
}

.social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(78, 84, 200, 0.4);
}

/* Footer */
footer {
    background-color: #2d2d2d;
    color: var(--text-light);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.footer-col h3 {
    font-size: 22px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: #fff;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-light);
}

.footer-col p {
    margin-bottom: 15px;
    color: #bbb;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #bbb;
    margin-top: 30px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-light);
    border-top-color: transparent;
    border-radius: 50%;
    animation: loading 0.8s linear infinite;
}

@keyframes loading {
    to {
        transform: rotate(360deg);
    }
}

/* Select with Checkboxes */
.select-with-checkboxes {
    border: 1px solid rgba(78, 84, 200, 0.2);
    border-radius: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f0f0f0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.select-with-checkboxes::-webkit-scrollbar {
    width: 8px;
}

.select-with-checkboxes::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.select-with-checkboxes::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.select-with-checkboxes div {
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.select-with-checkboxes div:hover {
    background: rgba(78, 84, 200, 0.1);
    transform: translateX(4px);
}

.select-with-checkboxes label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.select-with-checkboxes input[type="checkbox"] {
    margin-right: 12px;
    accent-color: var(--primary);
    cursor: pointer;
    width: 18px;
    height: 18px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.select-with-checkboxes input[type="checkbox"]:checked {
    opacity: 1;
    transform: scale(1.1);
}

.select-with-checkboxes input[type="checkbox"]:checked + span {
    color: var(--primary);
    font-weight: 500;
}

.select-with-checkboxes div:hover input[type="checkbox"]:not(:checked) {
    opacity: 1;
}

/* Media Queries */
@media (min-width: 1100px) {
    .steps {
        gap: 0;
    }
    
    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 25px;
        left: 50%;
        width: calc(100% - 50px);
        height: 2px;
        background: linear-gradient(to right, var(--primary-light), var(--primary));
        border: none;
        z-index: 0;
        transform: translateX(calc(25px + 15px));
        margin-left: calc(250px / 2);
    }
}

@media (max-width: 992px) {
    .step:not(:last-child)::after {
        display: none;
    }
    
    .steps {
        gap: 40px;
    }
    
    #personalization-section {
        max-width: 90%;
        padding: 25px 30px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }
    
    .header-container {
        flex-direction: column;
        align-items: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        margin-top: 0;
        padding: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero {
        padding-top: 140px;
        padding-bottom: 70px;
        margin-top: 0;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-btns .btn {
        width: 80%;
        max-width: 300px;
    }
    
    .floating-calendar {
        width: 95%;
    }
    
    .calendar-day {
        padding: 5px 3px;
        min-height: 50px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .holiday-marker,
    .nameday-marker {
        font-size: 9px;
    }
    
    .calendar-summary-info {
        width: 95%;
        font-size: 13px;
    }
    
    #personalization-section {
        padding: 20px;
    }
    
    #personalization-section h2 {
        font-size: 24px;
    }
    
    .personalization-group h3 {
        font-size: 16px;
    }
    
    .select-group select {
        font-size: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .contact-content {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        max-width: 90%;
        width: 100%;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-col {
        min-width: 90%;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
