/* Custom styles for nurho.tech newsletter signup */

.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.form-step.active {
    display: block;
}

.form-step .space-y-4 {
    @apply space-y-6;
}

.form-step label {
    display: block;
    color: #374151;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

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

.form-input {
    width: 100% !important;
    padding: 12px 16px !important;
    background-color: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #111827 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    outline: none !important;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.btn-primary {
    padding: 12px 24px !important;
    background-color: #3b82f6 !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: none !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15) !important;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2563eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

.btn-primary:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.btn-secondary {
    padding: 12px 24px !important;
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.btn-secondary:hover {
    background-color: #e5e7eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.error-message {
    display: none;
    color: #3b82f6;
    font-size: 14px;
    margin-top: 6px;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

.benefit-option {
    cursor: pointer;
    margin-bottom: 12px;
}

.benefit-card {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.benefit-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.benefit-option.selected .benefit-card {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25) !important;
    transform: translateY(-1px) !important;
}

.benefit-option.selected .benefit-card::after {
    content: "✓";
    position: absolute;
    top: 15px;
    right: 15px;
    color: #3b82f6;
    font-weight: bold;
    font-size: 18px;
}

.benefit-option.selected .benefit-card h3 {
    color: #1e40af;
}

.benefit-option.disabled {
    cursor: not-allowed;
}

.benefit-option.disabled .benefit-card {
    opacity: 0.5;
    border-color: #e5e7eb;
    background-color: #f9fafb;
}

.benefit-option.disabled:hover .benefit-card {
    border-color: #e5e7eb;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        @apply px-2;
    }
    
    .bg-white {
        @apply p-3;
    }
    
    h1 {
        @apply text-3xl;
    }
    
    h2 {
        @apply text-xl;
    }
    
    .btn-primary, .btn-secondary {
        @apply px-4 py-2 text-sm;
    }
}

/* Loading animation */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Progress bar animation */
#progress-bar {
    transition: width 0.3s ease-in-out;
}

/* Custom scrollbar for better appearance */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    @apply bg-gray-100;
}

::-webkit-scrollbar-thumb {
    @apply bg-gray-300 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-gray-400;
}
