/* Subscription Lookup Form Styles */
/* Padding for fixed header is now handled in base.html */
.container.mt-5 {
    /* padding-top removed as it's now handled in base.html */
}

/* Message Styles */
.messages {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error, .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.subscription-lookup-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subscription-lookup-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-header {
    padding: 1.5rem;
    border-bottom: none;
}

.card-header h3 {
    font-weight: 600;
    margin-bottom: 0;
}

.card-body {
    padding: 2rem;
    background-color: #f5f5f5; /* Light grey background */
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.form-control {
    height: 50px;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #1e5799;
    box-shadow: 0 0 0 0.2rem rgba(30, 87, 153, 0.25);
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.divider span {
    padding: 0 1rem;
    color: #6c757d;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.btn-lookup {
    height: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    background-color: #1e5799;
    border-color: #1e5799;
    transition: all 0.3s ease;
}

.btn-lookup:hover {
    background-color: #154477;
    border-color: #154477;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 87, 153, 0.3);
}

.cf-turnstile {
    margin: 1rem auto;
    display: flex;
    justify-content: center;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Padding for fixed header is now handled in base.html */
    .container.mt-5 {
        /* padding-top removed as it's now handled in base.html */
    }

    .subscription-lookup-card {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1.5rem;
        background-color: #f5f5f5; /* Light grey background */
    }

    .form-control {
        height: 55px; /* Slightly larger for mobile touch */
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .btn-lookup {
        height: 55px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Padding for fixed header is now handled in base.html */
    .container.mt-5 {
        /* padding-top removed as it's now handled in base.html */
    }

    .card-header h3 {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1.25rem;
        background-color: #f5f5f5; /* Light grey background */
    }

    .form-control {
        height: 60px; /* Even larger for smaller screens */
    }

    .btn-lookup {
        height: 60px;
    }
}
