* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f2f5;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.header-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    width: 100%;
    padding: 20px;
    background: rgba(0,0,0,0.3);
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.2rem;
}

.main-content {
    padding: 20px;
}

.input-page, .result-page {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.4rem;
}

.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 1rem;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: #f8f9fa;
}

input[readonly] {
    background-color: #e9ecef;
    color: #1a73e8;
    font-weight: bold;
}

.calculate-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 30px;
}

.back-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.note {
    text-align: center;
    color: #1a73e8;
    margin: 20px 0;
    font-size: 0.9rem;
}

.thank-you {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.result-group {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .container {
        padding: 0;
    }
    
    .header-image {
        height: 250px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 15px;
    }

    input {
        font-size: 14px;
    }
} 