/**
 * Public facing styles
 */

/* Modern Form Container */
.aegis-form-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 40px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border: 1px solid #f0f0f0;
}

.aegis-form-header {
    margin-bottom: 30px;
    text-align: center;
}

.aegis-form-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.aegis-form-header p {
    color: #666;
    margin: 0;
}

/* Grid Layout */
.aegis-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.aegis-field-group {
    margin-bottom: 20px;
}

.aegis-field-group.half-width {
    flex: 1;
}

.aegis-field-group.full-width {
    width: 100%;
}

.aegis-field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    font-size: 14px;
}

/* Inputs */
.aegis-input,
.aegis-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #fafafa;
    box-sizing: border-box;
    /* Fix sizing issues */
}

.aegis-input:focus,
.aegis-select:focus {
    border-color: #2271b1;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.aegis-input[readonly] {
    background: #f0f0f0;
    color: #777;
    cursor: not-allowed;
}

/* Select Wrapper */
.aegis-select-wrapper {
    position: relative;
}

.aegis-select-wrapper::after {
    content: "▼";
    font-size: 10px;
    color: #888;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.aegis-select {
    appearance: none;
    -webkit-appearance: none;
}

/* File Input */
.aegis-file-label {
    cursor: pointer;
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    color: #666;
    transition: all 0.2s;
}

.aegis-file-label:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

.aegis-file-input {
    margin-top: 10px;
}

/* Buttons */
.aegis-form-actions {
    margin-top: 30px;
    text-align: right;
}

.aegis-button {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.aegis-button.primary {
    background: #2271b1;
    color: #fff;
}

.aegis-button.primary:hover {
    background: #135e96;
    transform: translateY(-1px);
}

/* Notices */
.aegis-notice {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.aegis-notice-success {
    background: #f0f9eb;
    border-color: #4caf50;
    color: #2e7d32;
}

.aegis-notice-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}