/* Forms CSS - Typical form styling with hardcoded values */

.form-container {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.form-title {
    font-size: 28px;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-description {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 30px;
}

/* Form groups - hardcoded spacing */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-label.required::after {
    content: '*';
    color: #ef4444;
    margin-left: 4px;
}

/* Input fields - hardcoded padding, borders, colors */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

/* Textarea specific */
.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Select dropdown */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Checkbox and radio */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.form-check-label {
    font-size: 14px;
    color: #475569;
    cursor: pointer;
}

/* Input with icon */
.input-group {
    position: relative;
}

.input-group-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}

.input-group .form-input {
    padding-left: 42px;
}

/* Form validation states */
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: #ef4444;
}

.form-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.is-valid,
.form-select.is-valid,
.form-textarea.is-valid {
    border-color: #10b981;
}

.form-input.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.invalid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #ef4444;
}

.valid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #10b981;
}

/* Helper text */
.form-helper {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
}

/* Form buttons */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.form-submit {
    flex: 1;
    background-color: #3b82f6;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

.form-cancel {
    padding: 14px 24px;
    background-color: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.form-cancel:hover {
    background-color: #e2e8f0;
}

/* Inline form layout */
.form-inline {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.form-inline .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Search form - specific styling */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid #cbd5e1;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.search-button {
    padding: 14px 30px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    cursor: pointer;
}

.search-button:hover {
    background-color: #2563eb;
}

/* Newsletter form */
.newsletter-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.newsletter-form h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.newsletter-form p {
    font-size: 16px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-input-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
}

.newsletter-button {
    padding: 14px 30px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.newsletter-button:hover {
    background-color: #ee5a52;
}

/* File upload */
.file-upload {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #3b82f6;
    background-color: #f0f9ff;
}

.file-upload-input {
    display: none;
}

.file-upload-icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 15px;
}

.file-upload-text {
    font-size: 16px;
    color: #475569;
    margin-bottom: 8px;
}

.file-upload-hint {
    font-size: 12px;
    color: #94a3b8;
}
