/* Modern Forms Design for Contact, Login, Register Pages */

/* Hide all breadcrumbs site-wide */
.breadcrumb,
ul.breadcrumb,
.modern-breadcrumb {
    display: none !important;
}

/* General form page styling */
.modern-form-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    min-height: 100%;
    padding: 40px 0 60px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Override OpenCart's default container padding for modern form pages */
.modern-form-page #content {
    padding-bottom: 40px !important;
}

.modern-form-page .container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modern-form-container {
    max-width: 900px;
    margin: 0 auto;
}

.modern-form-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 48px;
    margin-bottom: 32px;
}

.modern-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.modern-form-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 12px;
}

.modern-form-header p {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
}

/* Form field styling */
.modern-form-group {
    margin-bottom: 24px;
}

.modern-form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.modern-form-group input[type="text"],
.modern-form-group input[type="email"],
.modern-form-group input[type="password"],
.modern-form-group input[type="tel"],
.modern-form-group textarea,
.modern-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.modern-form-group input:focus,
.modern-form-group textarea:focus,
.modern-form-group select:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modern-form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.modern-form-group input::placeholder,
.modern-form-group textarea::placeholder {
    color: #9ca3af;
}

/* Buttons */
.modern-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.modern-btn-secondary {
    background: #ffffff;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-btn-secondary:hover {
    background: #f0f4ff;
}

/* Login page specific */
.login-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.login-split-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.login-split-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.login-split-card p {
    color: #6b7280;
    margin-bottom: 24px;
    flex-grow: 1;
}

.login-divider {
    text-align: center;
    margin: 32px 0;
    position: relative;
}

.login-divider span {
    background: #ffffff;
    padding: 0 16px;
    color: #9ca3af;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

/* Register page specific */
.register-container {
    max-width: 700px;
    margin: 0 auto;
}

.register-fieldset {
    border: none;
    padding: 0;
    margin-bottom: 40px;
}

.register-fieldset legend {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    width: 100%;
}

.form-check-switch {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-check-switch input[type="checkbox"] {
    width: 48px;
    height: 24px;
    cursor: pointer;
}

/* Contact page specific */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.contact-info-card {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.contact-info-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info-card p {
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.contact-info-card i {
    color: #2563eb;
    font-size: 1.2rem;
}

/* Alert messages */
.modern-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.modern-alert-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.modern-alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Breadcrumb styles removed - breadcrumbs are hidden site-wide via custom-modern.css */

/* Links */
.modern-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.modern-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Required field indicator */
.required label::after {
    content: ' *';
    color: #ef4444;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .login-split-container {
        grid-template-columns: 1fr;
    }

    .modern-form-card {
        padding: 32px 24px;
    }

    .login-split-card {
        padding: 32px 24px;
    }

    .modern-form-header h1 {
        font-size: 2rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide default columns on modern forms */
.modern-form-page #column-left,
.modern-form-page #column-right {
    display: none;
}

.modern-form-page #content {
    width: 100% !important;
    max-width: none !important;
}

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

.modern-form-card,
.login-split-card {
    animation: fadeIn 0.5s ease;
}

/* Invalid feedback */
.invalid-feedback {
    display: block;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 4px;
}

.is-invalid {
    border-color: #ef4444 !important;
}

/* Success state */
.is-valid {
    border-color: #10b981 !important;
}
