:root {
    --bg: #f5f5f5;
    --card: #ffffff;
    --text: #1f1f1f;
    --muted: #666;
    --border: #d8d8d8;
    --focus: #2c7c84;
    --danger: #b00020;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

/* Layout */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: AvenirNextCyr-Regular, NunitoSans, FoundersGroteskRegular, sans-serif, Verdana, Geneva, Tahoma, sans-serif;
    color: var(--text);
    background: var(--bg);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* Header */

header {
    width: 100%;
    padding: 20px;
    background-color: white;
    text-align: center;
}

header img {
    display: block;
    margin: 0 auto;
    max-width: 500px;
    height: auto;
}

/* Card */

.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

/* Typography */

h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    color: #1c7780;
}

.intro {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.main-label {
    font-weight: 600;
}

.required {
    color: var(--danger);
}

/* Form layout */

fieldset {
    border: 1px solid #e3e7e8;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    background: #f4f7f7;
}

legend {
    font-weight: 700;
    padding: 0 0.5rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.4rem;
}

/* Inputs */

input[type="checkbox"] {
    width: 20px;
    height: 20px;
}


input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 0.85rem;
    border: 1px solid #c9d1d4;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #9fb6bb;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgb(251, 255, 255);
}

/* Checkboxes & radios */

.checkbox-list,
.radio-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.4rem;
}



.check-row,
.radio-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.check-row input,
.radio-row input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}


.check-row label {
    cursor: pointer;
}

/* Partner section */

.partner-panel {
    display: block;
    padding-top: 1rem;
}


/* Event layout */

.two-column-events {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}

/* Helper text */

.hint {
    color: var(--muted);
    font-size: 0.94rem;
    margin-top: 0.2rem;
}

.legal-text {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.4;
}

.legal-text a {
    color: #0a66c2;
    text-decoration: underline;
}

/* Submit area */

.submit-row {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

button[type="submit"] {
    border: none;
    background: #00363e;
    color: #fff;
    border-radius: 8px;
    padding: 0.9rem 1.4rem;
    font: inherit;
    cursor: pointer;
    transition: transform 0.05s ease, box-shadow 0.1s ease;
}

button[type="submit"]:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

button[type="submit"]:active {
    transform: translateY(1px);
}

.status-message {
    color: var(--muted);
    font-size: 0.95rem;
}

/* intl-tel-input */

.iti {
    width: 100%;
}

.iti input {
    width: 100%;
}

/* Responsive */

@media (max-width: 760px) {

    .grid,
    .two-column-events {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 1.25rem;
    }
}

.check-row input:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

.registration-policy{
    padding-left:30px;
    padding-right:30px;
    padding-top:30px;
}

.form-disclaimer {
    font-size: 0.8rem;
    color: #666;
    margin-top: 15px;
    line-height: 1.4;
}