/**
 * Component Styles - Travel Agency Management System
 * All reusable component styles organized in one place
 */

/* ============================================
   NEWSLETTER FORM COMPONENT
   ============================================ */
.newsletter-form-widget {
    margin: 20px 0;
}

.newsletter-form .input-group {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.newsletter-form .btn-primary {
    background: linear-gradient(135deg, #B87333, #d4964f);
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    white-space: nowrap;
}

.newsletter-form .btn-primary:hover {
    background: linear-gradient(135deg, #d4964f, #B87333);
}

/* ============================================
   GET IN TOUCH FORM COMPONENT
   ============================================ */
.get-in-touch-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 5px solid #B87333;
}

.get-touch-header h3 {
    color: #122E5B;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.get-touch-header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 25px;
}

.get-in-touch-form .form-label,
.contact-form .form-label {
    font-weight: 600;
    color: #122E5B;
    margin-bottom: 8px;
}

.get-in-touch-form .form-control,
.get-in-touch-form .form-select,
.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.get-in-touch-form .form-control:focus,
.get-in-touch-form .form-select:focus,
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #B87333;
    box-shadow: 0 0 0 0.2rem rgba(184, 115, 51, 0.25);
}

.get-in-touch-form .btn-primary,
.contact-form .btn-primary {
    background: linear-gradient(135deg, #B87333, #d4964f);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.get-in-touch-form .btn-primary:hover,
.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 115, 51, 0.3);
}

.captcha-image {
    border-radius: 8px;
    height: 50px;
    background: white;
}

.captcha-input {
    max-width: 150px;
}

@media (max-width: 768px) {
    .get-in-touch-form {
        padding: 25px;
    }
    
    .get-touch-header h3 {
        font-size: 1.6rem;
    }
}

/* ============================================
   BEAT MY QUOTE WIDGET
   ============================================ */
.beat-my-quote-widget {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.beat-quote-header h3 {
    color: #122E5B;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.beat-quote-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.beat-quote-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #856404;
}

.beat-quote-form .form-label {
    font-weight: 600;
    color: #122E5B;
    margin-bottom: 8px;
}

.beat-quote-form .form-control,
.beat-quote-form .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.beat-quote-form .form-control:focus,
.beat-quote-form .form-select:focus {
    border-color: #B87333;
    box-shadow: 0 0 0 0.2rem rgba(184, 115, 51, 0.25);
}

.beat-quote-form .btn-primary {
    background: linear-gradient(135deg, #B87333, #d4964f);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.beat-quote-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 115, 51, 0.3);
}

.beat-quote-form .form-check-input:checked {
    background-color: #B87333;
    border-color: #B87333;
}

@media (max-width: 768px) {
    .beat-my-quote-widget {
        padding: 20px;
    }
    
    .beat-quote-header h3 {
        font-size: 1.5rem;
    }
}

/* ============================================
   FOOTER NEWSLETTER - FULL WIDTH
   ============================================ */
.footer-newsletter {
    background: linear-gradient(135deg, rgba(18, 46, 91, 0.95) 0%, rgba(18, 46, 91, 0.85) 100%);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

.newsletter-content {
    max-width: 1400px;
    margin: 0 auto;
}

.newsletter-header {
    text-align: center;
    margin-bottom: 25px;
}

.footer-newsletter h4 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 0;
}

.newsletter-form-grid {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.form-group-newsletter {
    flex: 1;
}

.form-group-newsletter.email-group {
    flex: 2;
    min-width: 250px;
}

.form-group-newsletter.captcha-group-inline {
    flex: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group-newsletter.button-group {
    flex: 0 0 auto;
    min-width: 180px;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-newsletter .captcha-image {
    border-radius: 8px;
    height: 46px;
    background: white;
    display: block;
}

.footer-newsletter .captcha-refresh {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    height: 46px;
    transition: all 0.3s ease;
    
}

.footer-newsletter .captcha-refresh:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter .captcha-input {
    flex: 1;
    max-width: none;
    height: 46px;
}

.footer-newsletter .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 18px;
    color: #122E5B;
    transition: all 0.3s ease;
    height: 46px;
    font-size: 0.95rem;
}

.footer-newsletter .form-control:focus {
    background: #ffffff;
    border-color: #B87333;
    box-shadow: 0 0 0 0.2rem rgba(184, 115, 51, 0.25);
    outline: none;
}

.footer-newsletter .form-control::placeholder {
    color: rgba(18, 46, 91, 0.6);
}

.footer-newsletter .btn-newsletter {
    background: linear-gradient(135deg, #B87333, #d4964f);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    height: 46px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.footer-newsletter .btn-newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 115, 51, 0.5);
    background: linear-gradient(135deg, #d4964f, #B87333);
}

.footer-newsletter .alert {
    margin-bottom: 20px;
    text-align: center;
    border-radius: 8px;
    width: 100%;
    clear: both;
    position: relative;
    z-index: 10;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .newsletter-form-grid {
        flex-wrap: wrap;
    }
    
    .form-group-newsletter.email-group {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .form-group-newsletter.captcha-group-inline {
        flex: 1 1 auto;
    }
    
    .form-group-newsletter.button-group {
        flex: 1 1 auto;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .footer-newsletter {
        padding: 25px 20px;
        margin-top: 30px;
    }
    
    .footer-newsletter h4 {
        font-size: 1.3rem;
    }
    
    .newsletter-form-grid {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-group-newsletter,
    .form-group-newsletter.email-group,
    .form-group-newsletter.captcha-group-inline,
    .form-group-newsletter.button-group {
        flex: 1 1 100%;
        width: 100%;
        min-width: 100%;
    }
    
    .form-group-newsletter.captcha-group-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-wrapper {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-newsletter .captcha-input {
        max-width: 100%;
    }
}
