/* S7 Submissions - Public Styles */

.s7-submission-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.s7-submission-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.s7-form-messages {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.s7-form-messages.success {
    display: block;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.s7-form-messages.error {
    display: block;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.s7-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.s7-form-row-half .s7-form-group {
    flex: 1;
}

.s7-form-group {
    margin-bottom: 20px;
}

.s7-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.s7-form-group .required {
    color: #d63638;
}

.s7-form-group input[type="text"],
.s7-form-group input[type="email"],
.s7-form-group input[type="url"],
.s7-form-group select,
.s7-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.s7-form-group input[type="text"]:focus,
.s7-form-group input[type="email"]:focus,
.s7-form-group input[type="url"]:focus,
.s7-form-group select:focus,
.s7-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
}

.s7-form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.s7-form-group input[type="file"]:hover {
    border-color: #2271b1;
}

.s7-field-description {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.s7-file-preview {
    margin-top: 15px;
    position: relative;
    display: inline-block;
}

.s7-file-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.s7-remove-file {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #d63638;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.s7-char-count {
    font-weight: 600;
}

.s7-form-section {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.s7-section-text {
    margin-bottom: 15px;
    color: #333;
    line-height: 1.6;
}

.s7-section-text p:last-child {
    margin-bottom: 0;
}

.s7-checkbox-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
}

.s7-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.s7-submit-group {
    margin-top: 30px;
}

.s7-submit-button {
    width: 100%;
    padding: 15px 30px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.s7-submit-button:hover {
    background: #135e96;
}

.s7-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.s7-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: s7-spin 0.6s linear infinite;
}

@keyframes s7-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .s7-submission-form {
        padding: 20px;
    }

    .s7-form-row {
        flex-direction: column;
        gap: 0;
    }

    .s7-form-row-half .s7-form-group {
        margin-bottom: 20px;
    }
}
