/* A&J Elektrotechnik Solar Calculator - Custom Styles */

/* Form inputs */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-all;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(169, 221, 17, 0.2);
}

/* Primary button with glow */
.btn-primary {
    @apply bg-primary text-gray-900 font-semibold transition-all relative overflow-hidden;
    box-shadow: 0 4px 14px rgba(169, 221, 17, 0.4);
}

.btn-primary:hover {
    @apply bg-primary-dark;
    box-shadow: 0 6px 20px rgba(169, 221, 17, 0.6);
    transform: translateY(-1px);
}

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

.btn-primary:disabled {
    @apply opacity-50 cursor-not-allowed;
    transform: none;
    box-shadow: none;
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Teaser blur effect */
.teaser-blur {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

.teaser-lock {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.75rem;
}

/* Result cards */
.result-card {
    @apply text-center p-6 bg-white rounded-2xl border border-gray-100 shadow-lg transition-all duration-300;
}

.result-card:hover {
    @apply -translate-y-1 shadow-xl border-primary/30;
}

.result-card.highlight {
    background: linear-gradient(135deg, rgba(169, 221, 17, 0.2), rgba(169, 221, 17, 0.1));
    border: 2px solid #a9dd11;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(169, 221, 17, 0.15), rgba(169, 221, 17, 0.05));
    border: 2px solid #a9dd11;
}

/* Step transitions */
.step-content {
    animation: fadeIn 0.3s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cookie banner styling */
#cookie-banner {
    backdrop-filter: blur(4px);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #a9dd11;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8bc20a;
}

/* ===========================================
   MOBILE OPTIMIZATIONS
   =========================================== */

/* Prevent iOS zoom on input focus - must be 16px+ */
@media (max-width: 640px) {

    .form-input,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select {
        font-size: 16px !important;
        padding: 14px 16px;
        border-radius: 12px;
    }

    /* Larger touch targets for checkboxes */
    input[type="checkbox"] {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }

    /* Better consent label spacing */
    .consent-label,
    label.flex.items-start {
        padding: 12px 0;
        gap: 12px;
    }

    /* Tighter card padding on mobile */
    .result-card {
        padding: 16px 12px;
    }

    /* Reduce result number size */
    .result-card .text-xl,
    .result-card .text-2xl {
        font-size: 1.125rem;
    }

    /* Better button sizing */
    .btn-primary {
        padding: 16px 24px;
        font-size: 16px;
    }

    /* CTA section tighter */
    .cta-section {
        padding: 20px 16px;
    }

    /* Cookie banner better fit */
    #cookie-banner>div {
        margin: 8px;
        padding: 20px 16px;
    }
}

/* Extra small screens (iPhone SE, etc) */
@media (max-width: 375px) {

    .form-input,
    input,
    select {
        font-size: 16px !important;
        padding: 12px 14px;
    }

    .result-card {
        padding: 12px 8px;
    }

    .result-card .text-3xl {
        font-size: 1.5rem;
    }
}