/* Mobile Responsive Styles for ChapelStreet Global Missions */

/* Section Styles */
.section {
    padding: 0px;
}

.section:first-child {
    padding-top: 5px;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .mobile-center {
        text-align: center !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
    
    .mobile-small-text {
        font-size: 0.9rem !important;
    }
    
    .mobile-reduced-padding {
        padding: 0.75rem !important;
    }
    
    .mobile-reduced-margin {
        margin-bottom: 1rem !important;
    }
    
    .section-header {
        margin-bottom: 1.5rem !important;
    }
    
    .section-header h1 {
        font-size: 1.75rem !important;
    }
    
    .section-header p {
        font-size: 0.95rem !important;
    }
    
    .mission-focus-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    .agreement-section {
        padding: 1rem !important;
    }
    
    .button-group {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .card-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .card-icon i {
        font-size: 30px !important;
    }
}

/* Tablet responsive styles */
@media (max-width: 992px) {
    .section-header h1 {
        font-size: 2rem;
    }
    
    .card-header h2 {
        font-size: 1.5rem;
    }
    
    .mission-focus-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Large mobile responsive styles */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Form improvements for small screens */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    /* Better touch targets */
    label {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Checkbox and radio improvements */
    input[type="checkbox"], 
    input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-right: 0.5rem;
    }
    
    /* Mission focus grid improvements */
    .mission-focus-grid label {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .mission-focus-grid span {
        font-size: 0.85rem;
    }
    
    /* Agreement section mobile */
    .agreement-section {
        padding: 0.75rem;
    }
    
    .agreement-section span {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .section-header h1 {
        font-size: 1.5rem !important;
    }
    
    .section-header p {
        font-size: 0.9rem !important;
    }
    
    .card-header h2 {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .mission-focus-grid {
        grid-template-columns: 1fr !important;
    }
    
    .button-group {
        padding: 1rem 0;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Process cards improvements */
    .card-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 1rem !important;
    }
    
    .card-icon i {
        font-size: 24px !important;
    }
    
    .card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Landscape orientation for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .section-header {
        margin-bottom: 1rem !important;
    }
    
    .section-header h1 {
        font-size: 1.5rem !important;
    }
    
    .section-header p {
        font-size: 0.9rem !important;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    .mission-focus-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    .mission-focus-grid label {
        padding: 0.5rem !important;
    }
}

/* Focus and accessibility improvements */
@media (max-width: 768px) {
    .form-control:focus,
    .btn:focus,
    input[type="checkbox"]:focus,
    input[type="radio"]:focus {
        outline: 2px solid var(--cs-primary);
        outline-offset: 2px;
    }
    
    /* Better contrast for mobile */
    .text-muted {
        color: var(--cs-gray-600) !important;
    }
    
    /* Ensure minimum touch target size */
    .btn, .form-control, input, select, textarea {
        min-height: 44px;
    }
    
    /* Improve readability */
    body {
        line-height: 1.5;
    }
    
    p, span, label {
        line-height: 1.4;
    }
}
