html, body {
    margin: 0;
    padding: 0;
    height: 100%
}

body {
    font: 16px/24px Scada,Helvetica,Arial,sans-serif;
    color: #222;
    -webkit-font-smoothing: antialiased
}

header {
    position: relative;
    display: table;
    margin: 0 0 4em;
    min-height: 240px;
    width: 100%;
    height: 30%;
    background: #e50076 url(bg.png);
    background-size: 320px 320px
}

    header, header > div {
        vertical-align: middle
    }

        header > div {
            display: table-cell
        }

section {
    margin: 0 auto 8em
}

section, h1 {
    max-width: 800px
}

h1 {
    position: relative;
    margin: -12px auto 0;
    color: #fff;
    text-indent: -4px;
    font: 72px/80px 'Russo One',Helvetica,Arial,sans-serif
}

    h1:after {
        position: absolute;
        top: 50%;
        left: 100%;
        margin: -40px 0 0;
        width: 62px;
        height: 80px;
        background: url(logo.svg);
        content: ''
    }

h2 {
    margin: 48px 0 24px;
    font: 32px/48px 'Russo One',Helvetica,Arial,sans-serif
}

p {
    margin: 0 0 1em
}

    p.lead {
        font-size: 130%;
        line-height: 150%
    }

.form {
    margin: 0 auto 8em;
    max-width: 800px
}

.form__subtitle {
    margin: 64px 0 32px;
    font: 32px/48px 'Russo One',Helvetica,Arial,sans-serif
}

.form__field {
    position: relative;
    clear: both;
    margin: 0 0 1.5em;
    padding: 0 0 0 150px
}

.form__field-label {
    position: relative;
    left: -150px;
    float: left;
    margin: 0 -150px 0 0;
    padding: 9px 0;
    width: 140px;
    font: 16px/24px Scada,Helvetica,Arial,sans-serif
}

.form__field._l .form__field-label {
    font: 24px/24px Scada,Helvetica,Arial,sans-serif
}

.input {
    position: relative;
    margin: 0 22px 0 0
}

.input__self {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 6px 10px;
    width: 100%;
    height: 30px;
    border: 1px solid #e6e6e6;
    border-radius: 1px;
    background: #f2f2f2;
    color: #1a1a1a;
    font: 16px/30px Scada,Helvetica,Arial,sans-serif;
    -webkit-font-smoothing: antialiased
}

    .input__self:focus {
        outline: none;
        border-color: #e50076;
        box-shadow: 0 0 2px 0 #e50076
    }

    .input__self::-webkit-input-placeholder {
        color: #1a1a1a
    }

    .input__self:-moz-placeholder, .input__self::-moz-placeholder {
        color: #1a1a1a;
        opacity: 1
    }

    .input__self:-ms-input-placeholder {
        color: #1a1a1a
    }

.input._textarea .input__self {
    min-width: 100%;
    max-width: 100%;
    height: 120px
}

.form__field._l .input__self {
    font: 24px/30px Scada,Helvetica,Arial,sans-serif
}

.radios {
    margin: 0;
    padding: 0 0 1em;
    list-style: none
}

.radios__item {
    display: inline-block;
    margin: 0;
    padding: 0;
    width: 30%;
    vertical-align: top;
    font: 16px/30px Scada,Helvetica,Arial,sans-serif
}

/* Checkbox Item - use inline-flex to preserve 3-column layout */
.radios__item:has(input[type="checkbox"]) {
    display: inline-flex;
    align-items: flex-start;
    gap: 0;
}

/* Radio/Checkbox Input */
.radios__input {
    /* Custom styling can be added here */
}

/* Checkbox Input - fixed width column */
input[type="checkbox"].radios__input {
    flex-shrink: 0;
    width: 23px;
    margin: 0;
    margin-top: 7px;	
}

/* Radio/Checkbox Label */
.radios__label {
    /* Label styling */
}

/* Checkbox Label - flexible column for text wrapping */
input[type="checkbox"] ~ .radios__label {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Radio/Checkbox Description */
.radios__desc {
    margin: 0 0 0 23px;
    color: #999;
    font: 12px/14px Scada,Helvetica,Arial,sans-serif
}

/* ============================================
   SELECT DROPDOWN
   ============================================ */

/* Select Wrapper */
.select {
    position: relative;
    overflow: hidden;
    margin: 0 1px 0 0;
    padding: 0;
    border: 1px solid #e6e6e6;
    border-radius: 1px;
    background: #f2f2f2;
    color: #1a1a1a;
    font: 16px/42px Scada, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Custom Dropdown Arrow */
.select:after {
    position: absolute;
    top: 50%;
    right: 6px;
    margin-top: -4px;
    width: 0;
    height: 0;
    border: 4px solid transparent;
    border-top: 6px solid #333;
    content: '';
}

/* Select Element */
.select__self {
    padding: 0 10px;
    width: 100%;
    height: 42px;
    border: none;
    background-color: transparent;
    background-image: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.select__self:focus {
    outline: none;
}

/* ============================================
   BUTTONS
   ============================================ */

/* Primary Button */
.btn {
    top: 0;
    display: inline-block;
    box-sizing: border-box;
    margin: 64px 0 0;
    width: 100%;
    height: 90px;
    border: 0;
    border-radius: 3px;
    background: #f20089;
    box-shadow: 0 0 0 1px rgba(0,0,0,.1),0 3px 5px rgba(0,0,0,.3);
    color: #fff;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    font: 64px/80px 'Russo One',Helvetica,Arial,sans-serif;
    cursor: pointer;
    transition: box-shadow .6s ease,transform .2s linear,text-shadow .6s ease,background-color .6s ease;
    transform: translateY(0)translateZ(0)
}

    .btn:hover, .file:hover .btn {
        background: #f4009b;
        text-shadow: 0 0 15px rgba(255,255,255,.5);
        transition: box-shadow .3s ease,transform .1s linear,text-shadow .3s ease,background-color .3s ease
    }

    .btn:active {
        box-shadow: 0 0 0 1px rgba(0,0,0,.2),0 2px 3px rgba(0,0,0,.5);
        transform: translateY(1px)
    }

    .btn:focus {
        outline: none
    }

    .btn._s {
        display: inline-block;
        margin: 0;
        padding: 0 20px;
        width: auto;
        height: 30px;
        font: 16px/30px 'Russo One',Helvetica,Arial,sans-serif
    }

.important:before {
    margin: 0 0 0 .3em;
    color: #f20089;
    content: '*';
    font-style: normal
}

label.error {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 10px;
    padding: 1px 8px;
    border-radius: 3px;
    background: rgba(229,0,118,.7);
    color: #fff
}

    label.error:before {
        position: absolute;
        bottom: 100%;
        left: 10px;
        width: 0;
        height: 0;
        border: 6px solid transparent;
        border-bottom: 6px solid rgba(229,0,118,.7);
        content: ''
    }

.success {
    text-align: center;
    font: 32px/32px Scada,Helvetica,Arial,sans-serif
}

.desc {
    display: block;
    padding: 10px 0;
    color: #999;
    font: 12px/14px Scada,Helvetica,Arial,sans-serif
}

.file {
    position: relative;
    display: inline-block;
    overflow: hidden;
    margin: 0 -2px;
    padding: 6px 2px;
    cursor: pointer
}

.file__input {
    position: absolute;
    top: -100px;
    right: -100px;
    bottom: -100px;
    left: -100px;
    z-index: 1;
    text-indent: -9999px;
    font-size: 72px;
    opacity: 0;
    cursor: pointer
}

.select {
    position: relative;
    overflow: hidden;
    margin: 0 1px 0 0;
    padding: 0;
    border: 1px solid #e6e6e6;
    border-radius: 1px;
    background: #f2f2f2;
    color: #1a1a1a;
    font: 16px/42px Scada,Helvetica,Arial,sans-serif;
    -webkit-font-smoothing: antialiased
}

.select__self {
    padding: 0 10px;
    width: 100%;
    height: 42px;
    border: none;
    background-color: transparent;
    background-image: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none
}

    .select__self:focus {
        outline: none
    }


/* ============================================
   TAGS INPUT
   ============================================ */

/* Tags Container - mimics input styling */
#tagsContainer {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 6px 10px;
    width: 100%;
    border: 1px solid #e6e6e6;
    border-radius: 1px;
    background: #f2f2f2;
    cursor: text;
}

#tagsContainer:focus-within {
    outline: none;
    border-color: #e50076;
    box-shadow: 0 0 2px 0 #e50076;
}

/* Tag Input inside Container */
#tagsInput {
    flex: 1;
    min-width: 120px;
    border: 0;
    background: transparent;
    padding: 0;
    outline: none;
    font: 16px/30px Scada, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
}

/* Tag Badge */
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    background: #e50076;
    color: #fff;
    font: 14px/20px Scada, Helvetica, Arial, sans-serif;
}

.tag-badge button {
    margin-left: 6px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-badge button:hover {
    color: #ffd;
}

/* Autocomplete Dropdown */
#tagsAutocomplete {
    position: absolute;
    z-index: 10;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    margin-top: 4px;
    max-height: 240px;
    overflow-y: auto;
    width: 100%;
}

.autocomplete-item {
    padding: 8px 16px;
    cursor: pointer;
    font: 16px/24px Scada, Helvetica, Arial, sans-serif;
    color: #222;
    transition: background-color 0.1s ease, color 0.1s ease;
}

.autocomplete-item:hover {
    background: #f2f2f2;
    color: #e50076;
}

.autocomplete-item.bg-blue-600 {
    background: #e50076;
    color: #fff;
}

/* Tags Error Message */
#tagsError {
    display: block;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 3px;
    background: rgba(229, 0, 118, 0.7);
    color: #fff;
    font: 12px/16px Scada, Helvetica, Arial, sans-serif;
}

#tagsError.hidden {
    display: none;
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */

/* Language Switcher */
.lang-switcher {
    text-align: right;
    margin-bottom: 20px;
}

.lang-switcher a {
    color: #e50076;
    font: 16px/24px Scada, Helvetica, Arial, sans-serif;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-switcher a:hover {
    color: #f20089;
    text-decoration: underline;
}

/* Alert Box */
.alert {
    margin: 0 auto 0em;
    max-width: 800px;
}

/* Error Alert */
.alert._error {
    background: rgba(229, 0, 118, 0.1);
    border-color: rgba(229, 0, 118, 0.3);
}

.alert._error h3 {
    margin: 0 0 12px;
    color: #e50076;
    font: 18px/24px 'Russo One', Helvetica, Arial, sans-serif;
}

.alert._error ul {
    margin: 0;
    padding: 0 0 0 20px;
    color: #d6006a;
    font: 14px/20px Scada, Helvetica, Arial, sans-serif;
}

/* Warning Alert */
.alert._warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.alert._warning p {
    margin: 0;
    color: #856404;
    font: 14px/20px Scada, Helvetica, Arial, sans-serif;
}

/* ============================================
   PHOTO UPLOAD
   ============================================ */

/* Photo Drop Zone */
.photo-drop-zone {
    border: 2px dashed #e6e6e6;
    border-radius: 3px;
    padding: 40px 24px;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.photo-drop-zone:hover {
    border-color: #e50076;
    background: #fff;
}

.photo-drop-zone__icon {
    margin: 0 auto 16px;
    width: 48px;
    height: 48px;
    color: #999;
}

.photo-drop-zone__text {
    margin-top: 16px;
}

.photo-drop-zone__label {
    color: #e50076;
    font: 16px/24px Scada, Helvetica, Arial, sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.photo-drop-zone__label:hover {
    color: #f20089;
    text-decoration: underline;
}

.photo-drop-zone__secondary {
    color: #666;
    font: 16px/24px Scada, Helvetica, Arial, sans-serif;
}

.photo-drop-zone__hint {
    margin-top: 8px;
    color: #999;
    font: 12px/16px Scada, Helvetica, Arial, sans-serif;
}

/* Photo File Name Display */
.photo-filename {
    margin-top: 8px;
    color: #666;
    font: 14px/20px Scada, Helvetica, Arial, sans-serif;
}

/* Photo Preview */
.photo-preview {
    margin-top: 16px;
}

.photo-preview__label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font: 14px/20px Scada, Helvetica, Arial, sans-serif;
}

.photo-preview__img {
    max-width: 300px;
    border: 1px solid #e6e6e6;
    border-radius: 3px;
}

/* ============================================
   POLICY CHECKBOX
   ============================================ */

/* Checkbox with Label */
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkbox-field input[type="checkbox"] {
    margin-top: 4px;
}

.checkbox-field label {
    font: 14px/20px Scada, Helvetica, Arial, sans-serif;
    cursor: pointer;
}

.checkbox-field label a {
    color: #e50076;
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-field label a:hover {
    color: #f20089;
    text-decoration: underline;
}

/* ============================================
   VALIDATION MESSAGES
   ============================================ */

/* ASP.NET Validation Summary */
.validation-summary-errors {
    padding: 16px 20px;
    margin-bottom: 24px;
    background: rgba(229, 0, 118, 0.1);
    border: 1px solid rgba(229, 0, 118, 0.3);
    border-radius: 3px;
}

.validation-summary-errors ul {
    margin: 0;
    padding: 0 0 0 20px;
    color: #d6006a;
    font: 14px/20px Scada, Helvetica, Arial, sans-serif;
}

/* Field Validation Messages */
.field-validation-valid {
    display: none;
}

.field-validation-error {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 3px;
    background: rgba(229, 0, 118, 0.7);
    color: #fff;
    font: 12px/16px Scada, Helvetica, Arial, sans-serif;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Override for 3-column radio layout */
.radios__item {
    width: 32%;
}
