/* Calculator Styles */

/* Calculator Section */
.calculator-section {
    background: transparent;
    padding: var(--space-6xl) 0;
    position: relative;
}

.calculator-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.calculator-card {
    background: linear-gradient(135deg, rgba(97, 97, 125, 0.3) 0%, rgba(97, 97, 125, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
    transform: none !important;
}

.calculator-card:hover {
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow:
        0 20px 40px rgba(59, 130, 246, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 0 50px rgba(59, 130, 246, 0.2) !important;
    transform: none !important;
}

.calculator-title {
    font-family: sans-serif;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.calculator-description {
    font-family: sans-serif;
    font-size: clamp(14px, 2.5vw, 16px);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Form Styles */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr;
    gap: var(--space-lg);
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-label {
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
}

.form-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 16px;
    font-family: sans-serif;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Select Styling */
select.form-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

select.form-input option {
    background: #1e293b;
    color: white;
    padding: 8px;
}

/* Calculate Button */
.btn-calculate {
    background: linear-gradient(135deg, #3435AA 0%, #5d5fef 50%, #3435AA 100%);
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    width: 100%;
    color: white;
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 600;
    font-family: sans-serif;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.3),
        0 8px 25px rgba(52, 53, 170, 0.4);
    background: linear-gradient(135deg, #4546bb 0%, #6e70ff 50%, #4546bb 100%);
}

.btn-calculate:active {
    transform: translateY(0);
}

.btn-calculate.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-calculate.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Styles */
.result-container {
    margin-top: var(--space-3xl);
    padding: var(--space-3xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(15px);
    animation: slideInUp 0.6s ease-out;
}

.result-number {
    font-family: sans-serif;
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 900;
    color: white;
    width: 120px;
    height: 120px;
    border: 3px solid #5560B6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg) auto;
    box-shadow: 0 0 20px rgba(85, 96, 182, 0.5);
    animation: glow 2s ease-in-out infinite;
    text-align: center;
    line-height: 1;
    padding: 0;
}

.result-description {
    font-family: sans-serif;
    font-size: clamp(16px, 2.5vw, 18px);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    width: 100%;
    text-align: center;
}

.result-description h3 {
    color: #3435AA;
    font-family: sans-serif;
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(52, 53, 170, 0.4);
}

/* Error States */
.form-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 5px;
    font-family: sans-serif;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .calculator-container {
        padding: var(--space-2xl) 0;
    }

    .calculator-card {
        padding: 30px 20px;
        margin: 0 20px;
    }

    .date-inputs {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .calculator-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .calculator-description {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .btn-calculate {
        padding: 12px 24px;
        font-size: 16px;
    }

    .result-container {
        padding: var(--space-2xl);
        margin-top: var(--space-2xl);
    }

    .result-number {
        font-size: 36px;
        width: 100px;
        height: 100px;
    }

    .result-description {
        font-size: 16px;
    }

    .result-description h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .calculator-card {
        padding: 25px 15px;
        margin: 0 15px;
    }

    .form-input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .btn-calculate {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(85, 96, 182, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(85, 96, 182, 0.8);
    }
}