section:not(:first-of-type) {
    margin-top: 30px;
}

textarea {
    height: 160px;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    color: #3e3e3e;
    border-radius: 4px;
    border: solid 1px #c9c9c9;
    font-family: Asap;
    font-size: 18px;
    resize: vertical;
}

.radio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content:center;
}

input[type="radio"] {
    /* Don't use display: none to hide, as we still want the input to be focusable */
    opacity: 0;
    position: fixed;
    width: 0;
}

input[type="radio"] + label {
    border-radius: 5px;
    line-height: 38px;
    display: inline-block;
    margin: 8px;
    font-size: 16px;
    cursor: pointer;
    background-color: white;
    border: 1px solid #333333;
    width: calc(25% - 16px);
    min-width: 132px;
    height: 40px;
    box-sizing: border-box;
    text-align: center;
    padding-left: 24px;
    padding-right: 24px;
}

input[type="radio"] + label.specific-time-label {
    min-width: 180px;
}

input[type="radio"] + label img {
    vertical-align: text-bottom;
}

input[type="radio"] + label:hover img.black,
input[type="radio"]:checked + label img.black,
input[type="radio"] + label img.white {
    display: none;
}

input[type="radio"] + label:hover img.white,
input[type="radio"]:checked + label img.white {
    display: inline;
}

input[type="radio"] + label:hover {
    background: #333333;
    color: white;
}

input[type="radio"]:checked + label {
    background-color: #20386f;
    border: 1px solid #20386f;
    color: white;
}

input[type="radio"]:focus + label {
    /* Fallback style for browsers that don't support :focus-visible */
    outline: 0;
    border: 1px solid darkorange;
}

input[type="radio"]:focus:not(:focus-visible) + label {
    /* Remove the focus indicator on mouse-focus for browsers that do support :focus-visible */
    outline: 0;
    border: 1px solid #333333;
}

input[type="radio"]:checked:focus:not(:focus-visible) + label {
    /* Remove the focus indicator on mouse-focus for browsers that do support :focus-visible */
    outline: 0;
    border: 1px solid #20386f;
}

input[type="radio"]:focus-visible + label  {
    /* Focus style for keyboard-focus on browsers that do support :focus-visible */
    border: 1px solid darkorange;
    outline: 0;
}

[data-specific-time-section] {
    display: none;
}

.datetime-group {
    display: flex;
}

.datetime-group.time-group {
    justify-content: flex-start;
}

.datetime-label {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    margin-top:16px;
}

.is-in-the-past select,
.invalid-date [data-date-select-group] select {
    border-color: #f30600;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    min-width: 160px;
}

.select-wrapper.month-wrapper {
    flex: 2;
}

.select-wrapper:not(:last-of-type) {
    margin-right: 20px;
}

.select-wrapper:before {
    content: attr(data-label);
    position: absolute;
    top: 5px;
    left: 5px;
    pointer-events: none;
    font-size: 12px;
    color: grey;
}

select {
    padding: 5px 8px;
    border-radius: 4px;
    width: 100%;
    box-shadow: none;
    background-image: url('/site-images/arrow.svg');
    background-repeat: no-repeat;
    background-position: calc(100% - 16px) 50%;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 65px;
    line-height: 70px;
    font-size: 18px;
    color: #1b1b1b;
    background-color: white;
    border: 1px solid gray;
    font-family: 'Asap';
}

.select-style select:focus {
    outline: none;
}

.error-message {
    margin-top: 4px;
    font-size: 16px;
    color: #f30600;
    text-align: left;
}

[data-past-date-error],
[data-invalid-date-error] {
    display: none;
}

.is-in-the-past [data-past-date-error],
.invalid-date [data-invalid-date-error] {
    display: block;
}

.teaser-container {
    display: flex;
    flex-wrap: wrap;
    line-height: 40px;
}

.teaser-input {
    margin-left: 10px;
    flex:1;
}

.teaser-reveal-time-message {
    width: 100%;
    margin-top: 4px;
}

.button-row {
    display: flex;
    justify-content: space-between;
}

@media only screen and (max-width: 680px) {
    main {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media only screen and (max-width: 550px) {
    .select-wrapper:not(:last-of-type).month-wrapper {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .date-group {
        display: block;
    }

    .select-wrapper {
        flex: 1;
    }

    .teaser-input {
        margin-left: 0;
    }
}