* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f5f5f5;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 480px;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.paper-bg {
    background-image: url('bg_first.png');
    background-size: cover;
    background-position: center;
}

.floral-bg {
    background-image: url('bg_second.png');
    background-size: contain;
    background-repeat: repeat-y;
}

.hero-section {
    text-align: center;
    padding-bottom: 30px;
}

.hero-image-container {
    position: relative;
    width: 100%;
}

.hero-image-container img {
    width: 100%;
    display: block;
}

.hero-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.hero-overlay-text h1 {
    position: absolute;
    top: 40%;
    width: 100%;
    font-family: 'Kaisei Decol', serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 2px;
    margin: 0;
}

.and-text {
    font-family: 'Kolker Brush', cursive;
    font-weight: 400;
    color: #D08B66;
    font-size: 75px;
}

.hero-overlay-text p {
    position: absolute;
    bottom: 2%;
    width: 100%;
    font-family: 'Kaisei Decol', serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

/* Блок с датой */
.date-block {
    margin: 30px 0;
}

.time-text {
    font-family: 'Kalnia', serif;
    font-weight: 400;
    font-size: 12px;
    margin-bottom: 10px;
}

.date-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.date-row span.month, 
.date-row span.day-name {
    font-family: 'Kaisei HarunoUmi', serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.date-row span.day-number {
    font-family: 'Kalnia', serif;
    font-weight: 400;
    font-size: 54px;
    line-height: 1;
}

.line {
    width: 40px;
    height: 1px;
    background-color: #333;
}

.year-text {
    font-size: 12px;
    letter-spacing: 2px;
}

/* Таймер */
.timer-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 20px 10px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-val {
    font-family: 'Kalnia', serif;
    font-weight: 600;
    font-size: 31px;
}

.timer-label {
    /* font-family: 'Kaisei HarunoUmi', serif; */
    font-weight: 400;
    font-size: 12px;
    margin-top: 5px;
}

/* --- Секция 2: Фото и текст --- */
.middle-section {
    padding: 30px 20px;
}

.guest-text-card {
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.guest-text-card h2 {
    font-family: 'Kaisei HarunoUmi', serif;
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 15px;
}

.guest-text-card p {
    /* font-family: 'Kaisei Tokumin', serif; */
    font-weight: 700;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: -0.4px; /* Уменьшенное расстояние между буквами */
}

.second-image {
    width: 100%;
    display: block;
    margin-bottom: 20px;
}

.quote {
    font-family: 'Sacramento', cursive;
    font-weight: 400;
    text-align: center;
    font-size: 21px;
    margin: 20px 0;
    color: #333;
}

.circle-photos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.person {
    text-align: center;
}

.photo-wrapper {
    border-radius: 50%;
    padding: 5px;
    display: inline-block;
}

.person img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
}

.person p {
    font-family: 'Sacramento', cursive;
    font-weight: 400;
    font-size: 21px;
    margin-top: 10px;
}

/* --- Секция 3: Детали (Меню, Подарки и тд) --- */
.details-section {
    padding: 40px 20px;
    text-align: center;
}

.detail-block {
    margin-bottom: 35px;
}

.detail-block h3 {
    font-family: 'Kaisei HarunoUmi', serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.detail-block:nth-of-type(1) h3 {
    font-size: 14px;
}

.detail-block p {
    font-family: 'Merriweather', serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.signature {
    font-family: 'Sacramento', cursive;
    font-weight: 400;
    font-size: 23px;
    margin-top: 40px;
    letter-spacing: 2px;
}

/* --- Секция 4: Опросник --- */
.form-section {
    padding: 40px 20px;
}

.form-container {
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-intro {
    font-family: 'Kantumruy Pro', sans-serif;
    font-weight: 400;
    font-size: 12px;
    border-left: 3px solid #d93838;
    padding-left: 15px;
    line-height: 1.4;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.5);
}

.question-block {
    margin-bottom: 25px;
}

.question-block h4 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.radio-label {
    font-family: 'Merriweather', serif;
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #333;
    border-radius: 50%;
    margin-right: 10px;
    outline: none;
    position: relative;
}

.radio-label input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #333;
    border-radius: 50%;
}

.submit-btn-image {
    display: block;
    margin: 30px auto 0;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.submit-btn-image:hover {
    opacity: 0.9;
    transform: scale(1.02); /* Легкое увеличение при наведении */
}

.submit-btn-image:active {
    transform: scale(0.98); /* Легкое сжатие при клике */
}

.submit-btn-image img {
    display: block;
    width: 100%;
    max-width: 180px; /* Размер кнопки, можно увеличить или уменьшить */
    height: auto;
}

/* Поле ввода текста (ФИО) */
.text-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #c98888; /* Цвет в тон вашей старой кнопки */
    border-radius: 20px;
    font-family: 'Merriweather', serif;
    font-size: 12px;
    outline: none;
    background: rgba(255, 255, 255, 0.7);
    transition: border-color 0.3s ease;
    margin-top: 5px;
    box-sizing: border-box;
}

.text-input:focus {
    border-color: #333; /* При нажатии рамка становится темной */
}

.text-input::placeholder {
    color: #999;
    font-weight: 300;
}
