/* Nayax Order Form - Figma Design */

/* Wrapper */
.nayax-order-form-wrapper {
    max-width: 752px;
    margin: 0 auto;
    padding: 0;
    font-family: "Outfit", sans-serif;
}

/* Form Container - Yellow Background */
.nayax-order-form {
    background: #FFCD00;
    max-width: 416px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0px 20px 25px -5px rgba(16, 24, 40, 0.1);
}

/* Form Title */
.nayax-form-title {
    margin: 0 0 24px 0;
    font-size: 21.88px;
    font-weight: 700;
    line-height: 32px;
    color: #141414;
    text-align: center;
}

/* Form Group */
.nayax-form-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

/* Form Field */
.nayax-form-field {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Label */
.nayax-form-label {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    color: #262626;
    margin-bottom: 0;
}

/* Required Asterisk */
.nayax-form-label__required {
    color: #FA4B4B;
}

/* Input Fields */
.nayax-form-input,
.nayax-form-textarea {
    width: 100%;
    background: white;
    border: 1px solid #B2B2B2;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: #141414;
    box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1);
    transition: border-color 0.2s;
}

.nayax-form-input:focus,
.nayax-form-textarea:focus {
    outline: none;
    border-color: #999999;
}

.nayax-form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Error States */
.nayax-form-input.error,
.nayax-form-textarea.error,
.nayax-form-checkbox__input.error {
    border-color: #FA4B4B !important;
    background-color: #FFF5F5;
}

.nayax-form-error {
    margin-top: 4px;
    font-size: 12px;
    line-height: 16px;
    color: #FA4B4B;
    font-weight: 400;
}

/* Checkbox */
.nayax-form-checkbox {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.nayax-form-checkbox__input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 2px solid #B2B2B2;
    background: white;
    border-radius: 2px;
    cursor: pointer;
}

.nayax-form-checkbox__label {
    flex: 1;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: #262626;
    cursor: pointer;
    margin: 0;
}

.nayax-form-checkbox__label a {
    color: #262626;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
}

.nayax-form-checkbox__label a:hover {
    color: #141414;
}

/* Submit Button */
.nayax-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.nayax-form-button {
    background: #262626;
    color: white;
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1);
    cursor: pointer;
    transition: background 0.2s;
    width: 224px;
}

.nayax-form-button:hover {
    background: #141414;
}

.nayax-form-button:disabled {
    background: #999999;
    cursor: not-allowed;
}

/* Success/Error Messages */
.nayax-form-messages {
    margin-top: 16px;
}

.nayax-form-message {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
}

.nayax-form-message.success {
    background: #d1e7dd;
    border: 1px solid #198754;
    color: #0a3622;
}

.nayax-form-message.error {
    background: #f8d7da;
    border: 1px solid #d63638;
    color: #58151c;
}

/* Footer Disclaimer */
.nayax-form-disclaimer {
    max-width: 752px;
    margin: 24px auto 0;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: #999999;
}

.nayax-form-disclaimer p {
    margin: 0 0 16px 0;
}

.nayax-form-disclaimer ul {
    list-style-type: disc;
    margin: 0 0 16px 21px;
    padding: 0;
}

.nayax-form-disclaimer li {
    margin: 0 0 8px 0;
}

/* Loading state for company search */
.nayax-form-input.loading {
    border-color: #E5A800;
    background-color: #FFFBE6;
    transition: border-color 0.2s, background-color 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
    .nayax-order-form {
        max-width: 100%;
        padding: 20px;
    }

    .nayax-form-title {
        font-size: 20px;
        line-height: 28px;
    }

    .nayax-form-button {
        width: 100%;
    }
}
