/*
 * Nordic Transport Group - Kontakt Styling
 * Styles für Kontaktformular mit eigenem Captcha
 */

/* ===== Contact Form Box ===== */
.contact-form-box {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.contact-form-box h3 {
    color: #0A1F44;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #7BBDE9;
}

/* ===== Form Styling ===== */
.contact-form .form-label {
    color: #0A1F44;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #7BBDE9;
    box-shadow: 0 0 0 0.2rem rgba(123, 189, 233, 0.25);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.contact-form .form-text {
    color: #6E747A;
    font-size: 0.9rem;
}

/* ===== Captcha Box ===== */
.captcha-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #7BBDE9;
    border-radius: 15px;
    padding: 2rem;
}

.captcha-box .form-label {
    font-size: 1.1rem;
    color: #0A1F44;
}

.captcha-question {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.captcha-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 2px solid #7BBDE9;
    font-size: 2rem;
    font-weight: 700;
    color: #0A1F44;
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 2px;
    box-shadow: 0 5px 15px rgba(123, 189, 233, 0.2);
}

.captcha-num {
    min-width: 50px;
    text-align: center;
    color: #7BBDE9;
}

.captcha-operator {
    color: #0A1F44;
}

.captcha-equals {
    color: #6E747A;
}

.captcha-placeholder {
    min-width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7BBDE9;
}

.captcha-input {
    max-width: 150px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    border: 3px solid #7BBDE9 !important;
}

.captcha-input:focus {
    border-color: #0A1F44 !important;
    box-shadow: 0 0 0 0.3rem rgba(123, 189, 233, 0.3) !important;
}

/* ===== Checkbox Styling ===== */
.form-check-input {
    width: 1.3rem;
    height: 1.3rem;
    border: 2px solid #7BBDE9;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #7BBDE9;
    border-color: #7BBDE9;
}

.form-check-input:focus {
    border-color: #7BBDE9;
    box-shadow: 0 0 0 0.2rem rgba(123, 189, 233, 0.25);
}

.form-check-label {
    color: #0A1F44;
    cursor: pointer;
}

.form-check-label a {
    color: #7BBDE9;
    text-decoration: none;
    font-weight: 600;
}

.form-check-label a:hover {
    color: #0A1F44;
    text-decoration: underline;
}

/* ===== Submit Button ===== */
.contact-form .btn-primary {
    background: linear-gradient(135deg, #7BBDE9 0%, #0A1F44 100%);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(123, 189, 233, 0.3);
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(123, 189, 233, 0.5);
}

/* ===== Contact Info Box ===== */
.contact-info-box {
    background: linear-gradient(135deg, #0A1F44 0%, #1a3a5c 100%);
    border-radius: 20px;
    padding: 2.5rem;
    color: white;
    height: 100%;
    box-shadow: 0 10px 40px rgba(10, 31, 68, 0.3);
}

.contact-info-box h4 {
    color: #7BBDE9;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-box h5 {
    color: #7BBDE9;
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(123, 189, 233, 0.2);
    transform: translateX(5px);
}

.info-item i {
    font-size: 2rem;
    color: #7BBDE9;
    min-width: 40px;
    text-align: center;
}

.info-item strong {
    display: block;
    color: #7BBDE9;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.info-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.info-item a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-item a:hover {
    color: #7BBDE9;
}

/* ===== FAQ Items ===== */
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #7BBDE9;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.faq-item h6 {
    color: #7BBDE9;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.faq-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.faq-item a {
    color: white;
    font-weight: 600;
}

.faq-item a:hover {
    color: #7BBDE9;
}

/* ===== Alerts ===== */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
    border-left: 5px solid #ffc107;
}

.alert i {
    font-size: 1.2rem;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .contact-form-box {
        margin-bottom: 2rem;
    }

    .contact-info-box {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-form-box {
        padding: 2rem;
    }

    .contact-info-box {
        padding: 2rem;
    }

    .captcha-question {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-display {
        justify-content: center;
        font-size: 1.5rem;
    }

    .captcha-input {
        max-width: 100%;
    }

    .captcha-box {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-form-box h3 {
        font-size: 1.5rem;
    }

    .captcha-display {
        padding: 1rem;
        font-size: 1.3rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
    }

    .info-item i {
        font-size: 2.5rem;
    }
}

/* ===== Animation für Captcha ===== */
@keyframes captchaShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.captcha-error {
    animation: captchaShake 0.5s;
    border-color: #dc3545 !important;
}

/* ===== Focus States ===== */
.form-control:invalid:focus,
.form-select:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control:valid:focus,
.form-select:valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}
