/* Form specific styles */
.form-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.form-card {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.form-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.form-description {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.form-body {
    padding: 1.5rem;
}

.field-wrapper {
    margin-bottom: 1.25rem;
}

.field-wrapper:last-child {
    margin-bottom: 0;
}

.field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #111827;
    background-color: #fff;
    transition: border-color 0.15s ease;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

.field-textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 0.625rem 1rem;
    background-color: #111827;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.submit-button:hover {
    background-color: #1f2937;
}

.submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.success-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #10b981;
}

.success-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.success-text {
    color: #6b7280;
    margin-bottom: 1rem;
}

.reset-button {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.reset-button:hover {
    color: #111827;
    background-color: #f3f4f6;
}

/* Footer */
.form-footer {
    margin-top: 2rem;
    text-align: center;
    padding: 1rem;
}

.powered-by {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

.powered-by:hover {
    color: #111827;
}

.formse-logo {
    height: 2rem;
    margin-right: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Error states */
.field-input.error,
.field-select.error,
.field-textarea.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .form-container {
        padding: 1rem;
    }
    
    .form-header,
    .form-body {
        padding: 1rem;
    }
}

/* Selects */
/* Reset and override any conflicting styles */
.form-container select,
.form-container .field-select {
    width: 100%;
    min-height: 36px !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: #24292f !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.427 5.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 5H4.604a.25.25 0 00-.177.427z' fill='%236e7781'/%3E%3C/svg%3E") !important;
    background-position: right 8px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.form-container select:hover,
.form-container .field-select:hover {
    background-color: #f6f8fa !important;
    border-color: #afb8c1 !important;
}

.form-container select:focus,
.form-container .field-select:focus {
    border-color: #0969da !important;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.3) !important;
    outline: none !important;
}

/* Style for the options */
.form-container select option,
.form-container .field-select option {
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: #24292f !important;
    background-color: #fff !important;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .form-container select,
    .form-container .field-select {
        font-size: 16px !important;
        min-height: 44px !important;
        padding: 8px 12px !important;
        padding-right: 32px !important;
    }
}

/* Fix Firefox focus ring */
.form-container select:-moz-focusring {
    color: transparent !important;
    text-shadow: 0 0 0 #24292f !important;
}

/* Disabled state */
.form-container select:disabled,
.form-container .field-select:disabled {
    background-color: #f6f8fa !important;
    border-color: #d0d7de !important;
    color: #8c959f !important;
    cursor: not-allowed !important;
}