* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #222;
    line-height: 1.6;
}

.container {
    width: 92%;
    max-width: 850px;
    margin: auto;
}

.header {
    background: #ffffff;
    text-align: center;
    padding: 35px 15px;
    border-bottom: 1px solid #e5e5e5;
}

.header h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.header p {
    color: #666;
}

.tool-card,
.result-card,
.info-section {
    background: #ffffff;
    margin-top: 25px;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.tool-card h2,
.result-card h2,
.info-section h2 {
    margin-bottom: 10px;
}

.description {
    color: #666;
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin: 15px 0 7px;
}

input,
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #d7dce5;
    border-radius: 9px;
    font-size: 16px;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #555;
}

textarea {
    resize: vertical;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

button {
    border: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 15px;
}

.primary-btn {
    background: #111;
    color: white;
    flex: 1;
}

.secondary-btn {
    background: #eeeeee;
    color: #222;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.copy-btn {
    background: #111;
    color: white;
}

.formatted-address {
    margin-top: 20px;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 10px;
    white-space: pre-line;
    min-height: 130px;
    font-size: 17px;
}

.format-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.format-buttons button {
    background: #eeeeee;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.feature {
    padding: 18px;
    background: #f7f7f7;
    border-radius: 10px;
}

.feature span {
    font-size: 28px;
}

.feature h3 {
    margin: 8px 0;
}

.feature p {
    color: #666;
    font-size: 14px;
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    color: #777;
    padding: 30px 10px;
}


@media (max-width: 650px) {

    .header h1 {
        font-size: 24px;
    }

    .tool-card,
    .result-card,
    .info-section {
        padding: 18px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .result-header {
        align-items: flex-start;
        flex-direction: column;
    }
}