* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: center;
}

.logo:hover {
    color: #3498db;
}

.consultation-hours, .service-area {
    background-color: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    margin: 0.5rem 0;
    text-align: center;
    width: 100%;
    max-width: 600px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-area {
    background-color: #3498db;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    margin: 1rem 0 0;
    width: 100%;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #3498db;
    background-color: #f0f0f0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero h1, .hero p {
    color: white;
}

.hero .sub-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.important-notice {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
}

.security-heading {
    color: #ff3e3e;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.no-extra-cost {
    color: #2ecc71;
    font-size: 1.1em;
    font-weight: 500;
    margin-left: 15px;
}

.notice-content {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.cta-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2rem 0;
    width: 100%;
    max-width: 300px;
}

.cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.trust-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0;
}

.quick-contact {
    margin: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.phone-number {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.8rem;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem 0;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    border: 2px solid rgba(231, 76, 60, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.phone-number:hover {
    background-color: #e74c3c;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

.call-hint {
    font-size: 0.9rem;
    color: #ddd;
    margin-top: 0.5rem;
    font-style: italic;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    min-width: 200px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    color: white;
}

.service-area-center {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 2rem auto;
    max-width: 900px;
    line-height: 1.6;
    text-align: center;
}

/* Process Section */
.process-contact-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.step {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.error-notice {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 60px;
    background-color: #fff3f3;
    border: 8px solid #ff0000;
    border-radius: 30px;
    width: 800px;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
    text-align: center;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.error-notice p {
    color: #ff0000;
    font-weight: 900;
    font-size: 240px;
    margin: 0;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    white-space: nowrap;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 50px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* Contact Section */
.contact {
    padding: 3rem 1rem;
    background-color: #f9f9f9;
    text-align: center;
}

.contact h2 {
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #e74c3c;
    outline: none;
}

.submit-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto;
}

.submit-button:hover {
    background-color: #c0392b;
}

/* Prices Section */
.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.price-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.price {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
    margin: 1rem 0;
}

.price-card ul {
    list-style: none;
    margin-top: 1rem;
}

.price-card li {
    margin-bottom: 0.5rem;
}

/* Purchase Cases */
.purchase-cases {
    padding: 3rem 1rem;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.purchase-cases-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.purchase-case-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.purchase-case-item:hover {
    transform: translateY(-5px);
}

.purchase-case-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.purchase-case-content {
    padding: 1.5rem;
}

.purchase-case-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.purchase-case-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.purchase-case-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.purchase-case-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.purchase-case-images {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    max-width: 100%;
    overflow: hidden;
}

.purchase-case-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.purchase-case-images img:hover {
    transform: scale(1.1);
    z-index: 1;
}

/* Admin Modal */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.admin-login-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #333;
}

/* Purchase Case Form */
.purchase-case-form-container {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 2rem auto;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.image-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    position: relative;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(231, 76, 60, 0.8);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}

/* 이메일 문의 위젯 */
.email-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
}

.email-widget-header {
    background-color: #3498db;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.email-widget-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.email-widget-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.email-widget-body {
    padding: 15px;
}

.email-widget-intro {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #555;
}

.email-form .form-group {
    margin-bottom: 15px;
}

.email-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.email-form input,
.email-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.email-form textarea {
    height: 80px;
    resize: none;
}

.email-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.email-submit-btn:hover {
    background-color: #219a52;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 1rem 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #3498db;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-section p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

.footer-phone {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px dashed rgba(52, 152, 219, 0.5);
    padding-bottom: 2px;
    display: inline-block;
}

.footer-phone:hover {
    color: #2980b9;
    border-bottom: 1px solid #2980b9;
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (min-width: 768px) {
    nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 1rem 5%;
    }
    
    .logo-container {
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 0;
    }
    
    .nav-links {
        margin: 0;
    }
    
    .process-contact-container {
        flex-direction: row;
    }
    
    .process, .contact {
        width: 50%;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .footer-section {
        min-width: 300px;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .security-heading {
        font-size: 1.5rem;
    }
    
    .purchase-case-images {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }
    
    .purchase-case-images img {
        height: 80px;
    }
    
    .email-widget {
        width: 90%;
        right: 5%;
        bottom: 10px;
    }
    
    .quick-contact {
        padding: 1.2rem;
    }
    
    .phone-number {
        font-size: 1.6rem;
        padding: 1rem 2rem;
        width: auto;
        min-width: 250px;
    }
    
    .footer-phone {
        font-size: 1.2rem;
        padding: 0.5rem 0;
        display: block;
        text-align: center;
    }
}

/* Animation */
@keyframes highlightPulse {
    0% {
        background-color: #f9f9f9;
    }
    50% {
        background-color: rgba(231, 76, 60, 0.1);
    }
    100% {
        background-color: #f9f9f9;
    }
}

.contact.highlight {
    animation: highlightPulse 2s ease-in-out;
}

.admin-link {
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.admin-link:hover {
    color: #333;
    background-color: #f0f0f0;
}

/* 문의글 목록 스타일 */
.inquiries-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.inquiries-container h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.inquiries-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inquiries-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.inquiries-list li:last-child {
    border-bottom: none;
}

.inquiry-name {
    font-weight: bold;
    color: #2196F3;
}

.inquiry-phone {
    color: #666;
}

.inquiry-date {
    color: #999;
    font-size: 12px;
}

/* 관리자 페이지 스타일 */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.admin-link {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.admin-link:hover {
    background-color: #2980b9;
}

.inquiries-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.inquiries-table th,
.inquiries-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.inquiries-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.inquiries-table tr:hover {
    background-color: #f8f9fa;
}

.delete-btn {
    padding: 6px 12px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background-color: #c0392b;
}

/* 새로운 오류 메시지 스타일 */
.process .error-notice {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(250px, 250px);
    padding: 40px;
    background-color: #fff3f3;
    border: 3px solid #ff0000;
    border-radius: 12px;
    max-width: 1200px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
    text-align: center;
    z-index: 1000;
}

.process .error-notice p {
    color: #ff0000;
    font-weight: bold;
    font-size: 72px;
    margin: 0;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 오류 팝업창 스타일 */
.error-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.error-popup-content {
    background-color: #fff3f3;
    padding: 40px;
    border-radius: 20px;
    border: 5px solid #ff0000;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: popupPulse 2s infinite;
}

.error-popup h3 {
    color: #ff0000;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 900;
}

.error-popup p {
    color: #ff0000;
    font-size: 24px;
    margin: 15px 0;
    font-weight: 700;
    line-height: 1.4;
}

.error-popup-contact {
    margin-top: 30px;
}

.error-popup-phone {
    display: inline-block;
    background-color: #ff0000;
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.error-popup-phone:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #ff0000;
    cursor: pointer;
    padding: 5px;
}

@keyframes popupPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* Animation classes */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optimize animations */
.step, .price-card {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
} 