.wedding-form-section {
    margin: 0 auto;
    padding-top: 86px;
    max-width: 590px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
}

.wedding-form-section__title {
    font-size: 30px;
    font-weight: 300;
    line-height: 1.2;
    color: #343D2A;
    text-align: center;
    text-transform: uppercase;
}

.wedding-form-section__deadline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.wedding-form-section__deadline-text {
    font-size: 20px;
    color: #4A5540;
    text-align: center;
}

.wedding-form-section__deadline-date {
    font-size: 36px;
    color: #343D2A;
    text-transform: uppercase;
}

.wedding-form {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    gap: 20px;
}

.wedding-form__field,
.wedding-form__field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wedding-form__label,
.wedding-form__group-title {
    font-size: 25px;
    color: #343D2A;
    text-transform: uppercase;
}

.wedding-form__input {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    font-family: inherit;
    color: #343D2A;
    background-color: #fff;
    border: 1px solid #D4DBC9;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wedding-form__input::placeholder {
    color: #B8C2A8;
    font-size: 16px;
}

.wedding-form__input:hover {
    border-color: #9AAA87;
}

.wedding-form__input:focus {
    outline: none;
    border-color: #343D2A;
    box-shadow: 0 0 0 3px rgba(52, 61, 42, 0.1);
}

.wedding-form__radio-group {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.wedding-form__radio {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #4A5540;
}

.wedding-form__radio-label {
    font-size: 18px;
    color: #4A5540;
    cursor: pointer;
    transition: color 0.2s ease;
}

.wedding-form__radio-group:hover .wedding-form__radio-label {
    color: #343D2A;
}

.wedding-form__checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.wedding-form__checkbox {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #4A5540;
}

.wedding-form__checkbox-label {
    font-size: 18px;
    color: #4A5540;
    cursor: pointer;
    transition: color 0.2s ease;
}

.wedding-form__checkbox-group:hover .wedding-form__checkbox-label {
    color: #343D2A;
}

.wedding-form__field-group .wedding-form__checkbox-group,
.wedding-form__field-group .wedding-form__radio-group {
    margin-left: 10px;
}

.wedding-form__button {
    margin-top: 20px;
    padding: 18px 32px;
    font-size: 20px;
    font-weight: 500;
    font-family: inherit;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #343D2A;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wedding-form__button:hover {
    background-color: #4A5540;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 61, 42, 0.2);
}

.wedding-form__button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(52, 61, 42, 0.2);
}

.wedding-form__button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 61, 42, 0.3);
}

@media (max-width: 600px) {
    .wedding-form {
        width: 100%;
    }

    .wedding-form-section {
        padding-top: 60px;
        gap: 24px;
    }

    .wedding-form-section__title {
        font-size: 34px;
    }

    .wedding-form-section__deadline-text {
        font-size: 18px;
    }

    .wedding-form-section__deadline-date {
        font-size: 28px;
    }

    .wedding-form__label,
    .wedding-form__group-title {
        font-size: 20px;
    }

    .wedding-form__input {
        padding: 14px 18px;
        font-size: 16px;
    }

    .wedding-form__input::placeholder {
        font-size: 14px;
    }

    .wedding-form__radio-label,
    .wedding-form__checkbox-label {
        font-size: 16px;
    }

    .wedding-form__button {
        padding: 16px 28px;
        font-size: 18px;
    }
}

@media (max-width: 500px) {
    .wedding-form-section {
        padding-top: 50px;
        padding-left: 20px;
        padding-right: 20px;
        gap: 20px;
    }

    .wedding-form-section__title {
        font-size: 32px;
    }

    .wedding-form-section__deadline-text {
        font-size: 16px;
    }

    .wedding-form-section__deadline-date {
        font-size: 24px;
    }

    .wedding-form__label,
    .wedding-form__group-title {
        font-size: 16px;
    }

    .wedding-form__input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .wedding-form__input::placeholder {
        font-size: 13px;
    }

    .wedding-form__radio-group,
    .wedding-form__checkbox-group {
        gap: 10px;
    }

    .wedding-form__radio-label,
    .wedding-form__checkbox-label {
        font-size: 14px;
    }

    .wedding-form__radio,
    .wedding-form__checkbox {
        width: 18px;
        height: 18px;
    }

    .wedding-form__button {
        padding: 14px 24px;
        font-size: 16px;
    }

    .wedding-form__field-group .wedding-form__checkbox-group,
    .wedding-form__field-group .wedding-form__radio-group {
        margin-left: 5px;
    }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 360px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 4.7s forwards;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.toast--success {
    background: #1a4d2e;
    color: #fff;
    border: 1px solid #2d7a4f;
}

.toast--error {
    background: #5e1a1a;
    color: #fff;
    border: 1px solid #a33;
}

.toast__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.toast--success .toast__icon {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.toast--error .toast__icon {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.toast__message {
    flex: 1;
}

.toast__close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.toast__close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (max-width: 600px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
    }
    .toast {
        min-width: auto;
        max-width: none;
    }
}

.wedding-form__subgroup {
    margin: 4px 0;
}

.wedding-form__subgroup:first-child {
    margin-top: 0;
}

.wedding-form__subgroup-title {
    font-size: 20px;
    font-weight: 500;
    color: #4A5540;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

.wedding-form__input--allergy {
    margin-top: 4px;
}

.wedding-form__required {
    color: #c44536;
    font-size: 1.1em;
    margin-left: 2px;
}

.wedwing-form__required {
    color: #c44536;
    font-size: 1.1em;
    margin-left: 2px;
}

.wedding-form__field-group .wedding-form__subgroup .wedding-form__radio-group {
    margin-left: 20px;
    margin-bottom: 10px;
}

.wedding-form__field-group .wedding-form__subgroup .wedding-form__radio-group:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .wedding-form__subgroup-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .wedding-form__field-group .wedding-form__subgroup .wedding-form__radio-group {
        margin-left: 15px;
        margin-bottom: 8px;
    }
}

@media (max-width: 500px) {
    .wedding-form__subgroup-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .wedding-form__field-group .wedding-form__subgroup .wedding-form__radio-group {
        margin-left: 10px;
        margin-bottom: 6px;
    }
}

.wedding-form__input--error {
    border-color: #c44536;
    background-color: rgba(196, 69, 54, 0.05);
}

.wedding-form__input--error:focus {
    border-color: #c44536;
    box-shadow: 0 0 0 3px rgba(196, 69, 54, 0.1);
}
