:root {
    --primary: #FF6600;
    --foreground: #333333;
    --muted-foreground: #737373;
    --background: #f7f7f7;
    --border: #E6E6E6;
    --accent: #6DC242;
    --destructive: #Ef4343;
    --ring: #6DC242;
    --input: #E6E6E6;
    --accent-foreground: #FFFFFF;
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.participant-data-container {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 14px;
    color: var(--foreground);
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
              var(--tw-ring-shadow, 0 0 #0000),
              var(--tw-shadow);
}

.participant-container-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--foreground);
    margin-top: 0;
}

.my-details-title {
    margin-bottom: 0.8rem !important;
}

.comment-container-title {
    margin-bottom: 0.8rem !important;
}

.participant-fields-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .participant-fields-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.field-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-field-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .checkbox-field-container {
        grid-column: span 2 / span 2;
    }
}

.checkbox-input {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--primary);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-width: 1rem;
}

.checkbox-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-input:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.bundle-checkbox {
    align-items: baseline !important;
}

.field-border {
    border: 1px solid var(--input)!important;
}

.field-border:focus {
    outline: 2px solid var(--ring) !important;
    outline-offset: 2px !important;
}

.field-destructive-border {
    border: 1px solid var(--destructive)!important;
}

.field-destructive-border:focus {
    outline: 2px solid var(--ring) !important;
    outline-offset: 2px !important;
}

.field-text {
    font-size: 0.875rem;
    color: var(--destructive);
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conditional-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 1.5rem;
}

.land-description-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 1.5rem;
    grid-column: span 2 / span 2;
}

.full-input {
    display: flex;
    height: 2.75rem !important;
    width: 100% !important;
    border-radius: 0.5rem;
    border: 1px solid var(--input);
    background-color: var(--background) !important;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--foreground);
    transition: all 0.2s;
    outline: none;
}

.full-input::placeholder {
    color: var(--muted-foreground);
}

.full-input:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px var(--ring) !important;
}

.full-input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.full-input::file-selector-button {
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.long-field-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .long-field-container {
        grid-column: span 2 / span 2;
    }
}

.comment-text {
    font-size: 0.875rem;
    color: var(--muted-foreground) !important;
    margin-bottom: 1rem;
}

.comment-text p {
    font-size: 0.875rem;
    color: var(--muted-foreground) !important;
    margin-bottom: 1rem;
}

.comment-area {
    display: flex;
    min-height: 100px !important;
    width: 100% !important;
    border-radius: 0.5rem;
    border: 1px solid var(--input) !important;
    background-color: var(--background) !important;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--foreground);
    transition: all 0.2s;
    outline: none;
    padding: 0.75rem;
    margin-top: 1rem;
}

.comment-area::placeholder {
    color: var(--muted-foreground);
}

.comment-area:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px var(--ring) !important;
}

.comment-area:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.payment-type-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.25rem;
    cursor: pointer;
    margin-bottom: 0rem;
}

@media (max-width: 767px) {
    .payment-type-button:last-of-type {
        margin-bottom: 1rem !important;
    }
}

@media (min-width: 768px) {
    .payment-type-button {
        margin-bottom: 1.5rem !important;
    }
}

.payment-type-button:hover {
    border-color: var(--muted-foreground);
}

.payment-type-button:has(input:checked) {
    border-color: var(--accent);
}

.promo-text > a:hover{
    text-decoration: underline;
}

.agb-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.agb-text {
    font-weight: 400;
    cursor: pointer;
    line-height: 1.625;
}

.agb-link {
    color: var(--primary);
    text-decoration: none;
}

.agb-link:hover {
    text-decoration: underline;
}

.agb-error {
    margin-bottom: 0.8rem !important;;
}

.submit-button {
    width: 100%;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background-color: var(--accent);
    color: var(--accent-foreground);
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 0;
    border-radius: 0.25rem;
    max-height: 48px;
    max-width: 265px;
}

.submit-button:hover {
    background-color: color-mix(in srgb, var(--accent) 90%, transparent);
}   

@media (min-width: 768px) {
    .submit-button {
        width: auto;
    }
}

@media (max-width: 480px) {
    .submit-button {
        max-width: 480px;
    }
}

.muted-text {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem !important;
}

.payment-radion-button {
    height: 16px;
    width: 16px;
}

.pyament-type-text {
    font-size: 16px;
}

.custom-select {
    appearance: none;
    @supports (appearance: base-select) {
        &,
        &::picker(select) {
        appearance: base-select;
        animation: rotateHue 10s infinite;
        }
    }
}

.custom-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.5rem;
    padding: 5px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    background: var(--background)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20' stroke-width='1.5' stroke='%23000' class='size-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E%0A")
        right 15px center / 20px no-repeat;

    @supports (appearance: base-select) {
        padding-inline: 15px;
        background-image: none;
        img {
            width: 30px;
            line-height: 1;
        }
        &::picker-icon {
            color: var(--muted-foreground);
            content: "";
            width: 12px;
            height: 12px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20' stroke-width='1.5' stroke='%23000' class='size-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E%0A");
            transition: rotate 0.2s ease-out;
        }
        &:open::picker-icon {
            rotate: 180deg;
        }
        &::picker(select) {
            box-shadow: 0px 1px 8px 1px rgba(0,0,0,0.2);
            margin: 3px 3px 3px 3px;
            background: #FFFFFF;
            border-radius: 0.5rem;
            border: 2px solid #ffffff;
            opacity: 0;
            height: 0;
            overflow: clip;
            max-width: 18.625rem;
            overflow-x: hidden;
            text-overflow: ellipsis;
            transition: height 0.5s ease-out, opacity 0.5s ease-out, overlay 0.5s, display 0.5s;
            transition-behavior: allow-discrete;
            max-height: 350px;
        }
        &:open::picker(select) {
            opacity: 1;
            height: calc-size(auto, size);
            max-height: 350px;
            overflow: auto;
            @starting-style {
                opacity: 0;
                height: 0;
            }
        }

        option {
            display: flex;
            align-items: center;
            cursor: pointer;
            padding: 5.5px;
            gap: 10px;
            padding-inline: 10px;
            border-radius: 0.25rem;
            margin: 3px 3px 3px 3px;
            font-size: 14px;
            color: var(--foreground);
            &:where(:hover) {
                background: var(--accent);
                color: white;
            }
            &::checkmark {
                display: block; 
            }
        }
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .custom-select {
        @supports (appearance: base-select) {
            padding-inline: 10px;
        }
    }
}

@media (max-width: 418px) {
    .custom-select {
        @supports (appearance: base-select) {
            padding-inline: 5px;
        }
    }   
}