/* ===== TIME ZONE CONVERTER & MEETING PLANNER ===== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.5;
}

.tool-container {
    max-width: 760px;
    padding: 20px;
}

.tool-header h1 {
    margin: 0 0 6px;
    font-size: 30px;
}

.tool-header p {
    margin: 0;
    color: #555;
}

.mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 24px;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

.mode-button {
    padding: 11px 10px;
    border: 0;
    background: #ffffff;
    color: #222;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.mode-button + .mode-button {
    border-left: 1px solid #333;
}

.mode-button.active {
    background: #222;
    color: #ffffff;
}

.calculator-section,
.results-section,
.info-section {
    border-top: 2px solid #333;
    margin-top: 26px;
    padding-top: 18px;
}

h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.three-column {
    grid-template-columns: repeat(3, 1fr);
}

.second-row {
    margin-top: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-weight: 600;
}

input,
select {
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 4px;
    background: #ffffff;
    color: #222;
    font-size: 16px;
}

input:focus,
select:focus {
    outline: 2px solid #555;
    outline-offset: 1px;
}

.field-note,
.result-note {
    color: #666;
    font-size: 14px;
}

.field-note {
    margin: 10px 0 0;
}

.result-note {
    margin-bottom: 0;
}

.primary-button {
    margin-top: 20px;
    padding: 11px 18px;
    border: 0;
    border-radius: 4px;
    background: #222;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.primary-button:hover {
    background: #444;
}

.error-message {
    min-height: 24px;
    margin-top: 10px;
    color: #a00000;
    font-weight: 600;
}

.hidden {
    display: none;
}

.featured-result {
    padding: 18px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #f3f3f3;
}

.featured-result span {
    display: block;
    color: #555;
}

.featured-result strong {
    display: block;
    margin: 3px 0;
    font-size: 30px;
}

.results {
    margin-top: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 14px;
    border-bottom: 1px solid #ddd;
}

.result-row:last-child {
    border-bottom: 0;
}

.result-row strong {
    max-width: 60%;
    text-align: right;
}

.meeting-window {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #bbb;
    border-radius: 4px;
}

.meeting-window:last-child {
    margin-bottom: 0;
}

.meeting-window h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.meeting-time {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 5px 0;
    border-top: 1px solid #eee;
}

.meeting-time:first-of-type {
    border-top: 0;
}

.meeting-time strong {
    text-align: right;
}

.quality {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 10px;
    background: #e6e6e6;
    font-size: 12px;
}

.info-section p {
    color: #444;
}

.info-section h2:not(:first-child) {
    margin-top: 26px;
}

@media (max-width: 650px) {

    .tool-container {
        padding: 14px;
    }

    .tool-header h1 {
        font-size: 26px;
    }

    .input-grid,
    .three-column {
        grid-template-columns: 1fr;
    }

    .result-row,
    .meeting-time {
        flex-direction: column;
        gap: 3px;
    }

    .result-row strong,
    .meeting-time strong {
        max-width: none;
        text-align: left;
    }
}