/* Form Container */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    background: #2a2a2a;
    padding: 40px;
    border: 1px solid #444;
    border-radius: 4px;
}

.form-container-wide {
    max-width: 900px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

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

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

/* Labels */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ddd;
    font-size: 14px;
}

label.required::after {
    content: " *";
    color: #cc0000;
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #555;
    background: #1a1a1a;
    color: #fff;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #cc0000;
}

textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: background 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: #cc0000;
    color: #ffffff;
}

.btn-primary:hover {
    background: #ff0000;
}

.btn-secondary {
    background: #666666;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #777777;
}

.btn-success {
    background: #4caf50;
    color: #ffffff;
}

.btn-success:hover {
    background: #5cbf60;
}

.btn-danger {
    background: #f44336;
    color: #ffffff;
}

.btn-danger:hover {
    background: #f55549;
}

.btn-info {
    background: #2196f3;
    color: #ffffff;
}

.btn-info:hover {
    background: #32a3f5;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

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

/* Button Groups */
.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Image Upload Zone */
.image-upload-zone {
    border: 2px dashed #555;
    background: #1a1a1a;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
    border-radius: 4px;
}

.image-upload-zone:hover {
    border-color: #cc0000;
    background: #222;
}

.image-upload-zone.dragover {
    border-color: #cc0000;
    background: #333;
}

.image-upload-zone input[type="file"] {
    display: none;
}

.image-upload-text {
    color: #ccc;
    font-size: 16px;
}

.image-upload-text .icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    color: #888;
}

/* Image Preview */
.image-preview {
    margin-top: 20px;
    display: none;
}

.image-preview.active {
    display: block;
}

.image-preview img {
    max-width: 100%;
    max-height: 400px;
    border: 1px solid #444;
    border-radius: 4px;
}

.image-preview-actions {
    margin-top: 10px;
}

/* Form Tabs */
.form-tabs {
    display: flex;
    border-bottom: 2px solid #444;
    margin-bottom: 30px;
}

.form-tab {
    padding: 15px 30px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 16px;
    transition: color 0.3s ease;
}

.form-tab:hover {
    color: #fff;
}

.form-tab.active {
    color: #cc0000;
    border-bottom: 2px solid #cc0000;
    margin-bottom: -2px;
}

.form-tab-content {
    display: none;
}

.form-tab-content.active {
    display: block;
}

/* Form Errors */
.form-error {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #f44336;
}

/* Social Links Section */
.social-links-section {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 4px;
    margin-top: 10px;
}

.social-links-section h3 {
    margin-bottom: 15px;
    color: #ddd;
}

/* Small Text Helper */
.form-text {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
    display: block;
}
