* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 18px 40px;
    background: #FFF7E8;
    color: #542B4F;
    font-size: 18px;
    line-height: 1.5;
}

/* Heading */

h1 {
    color: #542B4F;
    font-size: 32px;
    line-height: 1.2;
    margin: 10px 0 24px;
}

/* Add reminder */

form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

/* Text input */

form input[type="text"] {
    flex: 1 1 100%;
    min-width: 0;
    height: 52px;
    font-family: inherit;
    font-size: 18px;
    padding: 13px 15px;
    background: #FFFFFF;
    color: #542B4F;
    border: 2px solid #E5D8C8;
    border-radius: 12px;
    outline: none;
}

form input[type="text"]:focus {
    border-color: #F4B942;
    box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.22);
}

form input[type="text"]::placeholder {
    color: #8B7887;
}

/* Time picker */

form input[type="time"] {
    flex: 1;
    width: 0;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    font-family: inherit;
    font-size: 18px;
    padding: 13px 15px;
    background: #FFFFFF;
    color: #542B4F;
    border: 2px solid #E5D8C8;
    border-radius: 12px;
    outline: none;
    box-shadow: none;
}


form input[type="time"]:focus {
    border-color: #F4B942;
    box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.22);
}

/* Dropdown */

form select {
    flex: 1;
    width: 0;
    height: 52px;
    min-height: 52px;
    font-family: inherit;
    font-size: 18px;
    padding: 13px 15px;
    background: #FFFFFF;
    color: #542B4F;
    border: 2px solid #E5D8C8;
    border-radius: 12px;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

form select:focus {
    border-color: #F4B942;
    box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.22);
}

/* Buttons */

form > button {
    flex: 1 1 100%;
    min-height: 48px;
    font-family: inherit;
    font-size: 17px;
    padding: 10px 18px;
    background: #F4B942;
    color: #542B4F;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

form > button:hover {
    opacity: 0.9;
}

form > button:active {
    transform: scale(0.97);
}

/* Reminder list */

ul {
    padding: 0;
    margin: 0;
}

li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    padding: 16px;
    margin-bottom: 12px;
    background: #FFFFFF;
    border: 1px solid rgba(84, 43, 79, 0.22);
    border-radius: 14px;
    list-style: none;
    box-shadow: 0 3px 10px rgba(84, 43, 79, 0.08);
}

li button {
    flex-shrink: 0;
    min-height: 40px;
    background: #F2786B;
    color: #542B4F;
    font-size: 15px;
    padding: 7px 13px;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
}

li button:hover {
    opacity: 0.9;
}

li button:active {
    transform: scale(0.97);
}

li span:last-child {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Smaller screens */

@media (max-width: 480px) {
    body {
        padding: 20px 14px 32px;
    }

    h1 {
        font-size: 30px;
    }

    form {
        gap: 8px;
    }

    form input[type="time"] {
        -webkit-appearance: none;
        appearance: none;
        padding-right: 50px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23542B4F' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 22px 22px;
    }
    form select {
        flex: 1 1 100%;
        width: 100%;
    }

    form > button {
        padding: 10px 15px;
    }
}
