/* Responsive CSS for 인생통신 Website */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .hero-buttons .btn {
        width: auto;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .application-form {
        padding: 30px 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .carrier-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .carrier-header h3 {
        font-size: 1.5rem;
    }
    
    .benefit-card,
    .plan-card {
        margin-bottom: 30px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .application-form {
        padding: 25px 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-check {
        margin-bottom: 5px;
    }
    
    .carrier-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .carrier-header h3 {
        font-size: 1.3rem;
    }
    
    .carrier-logo {
        height: 40px;
    }
    
    .plan-card {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .plan-card h4 {
        font-size: 1rem;
    }
    
    .plan-card .price {
        font-size: 1.5rem;
    }
    
    .benefit-card {
        padding: 30px 15px;
        margin-bottom: 20px;
    }
    
    .benefit-card h3 {
        font-size: 1.3rem;
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
    }
    
    .benefit-icon i {
        font-size: 1.5rem;
    }
    
    .process-step {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .process-step h4 {
        font-size: 1.1rem;
    }
    
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-info h5,
    .footer-contact h5 {
        font-size: 1.1rem;
    }
    
    .footer-info p,
    .footer-contact p {
        font-size: 0.9rem;
    }
    
    /* Header adjustments for mobile */
    .header {
        padding: 10px 0;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    .call-button .btn {

        font-size: 0.8rem;
    }
    
    /* Hero section adjustments */
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    /* Modal adjustments */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 20px;
        font-size: 0.9rem;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .application-section,
    .benefits-section,
    .carrier-plans,
    .process-section {
        padding: 50px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .carrier-logo,
    .hero-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header,
    .hero-buttons,
    .application-form,
    .footer {
        display: none;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .hero-title {
        color: black !important;
    }
    
    .hero-title .highlight {
        color: #333 !important;
    }
    
    .section-title {
        color: black !important;
    }
    
    .benefit-card,
    .plan-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .process-step {
        page-break-inside: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .benefit-card:hover,
    .plan-card:hover,
    .hero-buttons .btn:hover {
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .header {
        background: rgba(26, 26, 26, 0.95);
        border-bottom: 1px solid #333;
    }
    
    .application-form {
        background: #2a2a2a;
        color: #ffffff;
    }
    
    .form-control {
        background: #333;
        border-color: #555;
        color: #ffffff;
    }
    
    .form-control:focus {
        background: #444;
        border-color: #007bff;
    }
    
    .benefit-card,
    .plan-card {
        background: #2a2a2a;
        color: #ffffff;
    }
    
    .footer {
        background: #1a1a1a;
    }
}

/* Focus styles for better accessibility */
@media (any-hover: hover) {
    .btn:focus,
    .form-control:focus,
    .form-check-input:focus {
        outline: 2px solid #007bff;
        outline-offset: 2px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .form-control,
    .form-check-input {
        min-height: 44px;
    }
    
    .hero-buttons .btn {
        padding: 15px 25px;
    }
    
    .radio-group {
        gap: 15px;
    }
    
    .form-check {
        gap: 12px;
    }
}

