.advanced-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.advanced-form-title {
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.advanced-form-field {
    margin-bottom: 20px;
}

/* Grid Layout Styles */
.advanced-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: start;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .advanced-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Field Width Classes */
.advanced-form-field[data-width="25"] {
    grid-column: span 1;
}

.advanced-form-field[data-width="50"] {
    grid-column: span 2;
}

.advanced-form-field[data-width="75"] {
    grid-column: span 3;
}

.advanced-form-field[data-width="100"] {
    grid-column: span 4;
}

/* Responsive Field Widths */
@media (max-width: 768px) {
    .advanced-form-field[data-width="25"],
    .advanced-form-field[data-width="50"],
    .advanced-form-field[data-width="75"],
    .advanced-form-field[data-width="100"] {
        grid-column: span 1;
    }
}

/* New Field Type Styles */
.file-types-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.range-value-display {
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
    color: #333;
}

.range-value {
    font-weight: bold;
    color: #007cba;
}

.html-content-field {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 10px;
}

.acceptance-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 15px;
}

.acceptance-label input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.acceptance-label span {
    line-height: 1.4;
}



/* Color picker styling */
input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 0;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    cursor: pointer;
}

/* Range slider styling */
input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
    border: none;
}

/* Hidden field styling */
.advanced-form-field input[type="hidden"] {
    display: none;
}

/* HTML content field styling */
.html-content-field p {
    margin: 0 0 10px 0;
}

.html-content-field p:last-child {
    margin-bottom: 0;
}

.advanced-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.advanced-form-field .required {
    color: #e74c3c;
}

.advanced-form-field input,
.advanced-form-field textarea,
.advanced-form-field select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.advanced-form-field input:focus,
.advanced-form-field textarea:focus,
.advanced-form-field select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.advanced-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.checkbox-radio-label input {
    width: auto;
    margin-right: 10px;
}

.advanced-form-submit {
    width: 100%;
    padding: 15px 30px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.advanced-form-submit:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.advanced-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-message {
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    margin-top: 15px;
}

.error-message {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .advanced-form-container {
        padding: 20px;
        margin: 10px;
    }
    
    .advanced-form-field input,
    .advanced-form-field textarea,
    .advanced-form-field select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Modern Form Animations */
.advanced-form-field {
    position: relative;
    overflow: hidden;
}

.advanced-form-field::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007cba;
    transition: width 0.3s ease;
}

.advanced-form-field:focus-within::after {
    width: 100%;
}

/* File Upload Styling */
.advanced-form-field input[type="file"] {
    padding: 10px;
    border: 2px dashed #e1e5e9;
    background: #f8f9fa;
}

.advanced-form-field input[type="file"]:hover {
    border-color: #007cba;
    background: #e3f2fd;
}
