.probonoform-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.probonoform-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.probonoform-form.probonoform-has-border {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    background: #fff;
}

.probonoform-form.probonoform-font-small {
    font-size: 13px;
}

.probonoform-form.probonoform-font-medium {
    font-size: 14px;
}

.probonoform-form.probonoform-font-large {
    font-size: 16px;
}

.probonoform-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.probonoform-field label {
    font-weight: 500;
    color: #333;
}

.probonoform-required {
    color: #e53935;
    margin-left: 4px;
}

.probonoform-required-label {
    display: inline-block;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.probonoform-field input[type="text"],
.probonoform-field input[type="email"],
.probonoform-field input[type="tel"],
.probonoform-field select,
.probonoform-field textarea {
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 6px;
    font-size: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.probonoform-field textarea {
    min-height: 120px;
    resize: vertical;
}

.probonoform-field input[type="file"] {
    padding: 12px;
    border: 2px dashed;
    border-radius: 6px;
    background: #f9f9f9;
    cursor: pointer;
}

.probonoform-field input[type="file"]:hover {
    opacity: 0.8;
}

.probonoform-file-hint {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.probonoform-checkbox-group,
.probonoform-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.probonoform-checkbox-label,
.probonoform-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.probonoform-checkbox-label input[type="checkbox"],
.probonoform-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.probonoform-submit {
    margin-top: 10px;
}

.probonoform-submit-btn {
    width: 100%;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.probonoform-submit-btn:hover {
    opacity: 0.9;
}

.probonoform-submit-btn:active {
    transform: scale(0.98);
}

.probonoform-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.probonoform-submit-btn.loading {
    position: relative;
    color: transparent !important;
}

.probonoform-submit-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: probonoform-spin 0.8s linear infinite;
}

@keyframes probonoform-spin {
    to {
        transform: rotate(360deg);
    }
}

.probonoform-confirm-screen {
    padding: 20px 0;
}

.probonoform-confirm-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.probonoform-confirm-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.probonoform-confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.probonoform-confirm-table th,
.probonoform-confirm-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.probonoform-confirm-table th {
    width: 35%;
    font-weight: 500;
    color: #555;
    background: #f8f9fa;
}

.probonoform-confirm-table td {
    color: #333;
}

.probonoform-confirm-buttons {
    display: flex;
    gap: 12px;
}

.probonoform-back-btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.probonoform-back-btn:hover {
    background: #e5e5e5;
}

.probonoform-confirm-submit-btn {
    flex: 2;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.probonoform-confirm-submit-btn:hover {
    opacity: 0.9;
}

.probonoform-confirm-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.probonoform-confirm-submit-btn.loading {
    position: relative;
    color: transparent !important;
}

.probonoform-confirm-submit-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: probonoform-spin 0.8s linear infinite;
}

.probonoform-result-screen {
    padding: 40px 20px;
    text-align: center;
}

.probonoform-result-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.probonoform-result-icon.success {
    color: #28a745;
}

.probonoform-result-icon.error {
    color: #dc3545;
}

.probonoform-result-message {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.probonoform-error {
    padding: 16px;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    color: #c62828;
    font-size: 14px;
}

.probonoform-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.probonoform-field.error input,
.probonoform-field.error select,
.probonoform-field.error textarea {
    border-color: #e53935 !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2) !important;
}

@media screen and (max-width: 600px) {
    .probonoform-container {
        padding: 16px;
    }

    .probonoform-form.probonoform-has-border {
        padding: 20px;
    }

    .probonoform-checkbox-group,
    .probonoform-radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .probonoform-confirm-buttons {
        flex-direction: column;
    }

    .probonoform-back-btn,
    .probonoform-confirm-submit-btn {
        flex: none;
        width: 100%;
    }

    .probonoform-confirm-table th,
    .probonoform-confirm-table td {
        display: block;
        width: 100%;
    }

    .probonoform-confirm-table th {
        border-bottom: none;
        padding-bottom: 4px;
    }

    .probonoform-confirm-table td {
        padding-top: 4px;
        padding-bottom: 16px;
    }
}