/*
 * Abogados del Maule - Contratos - Frontend Styles
 * Version: 1.1.2
 */

:root {
    --adm-color-primary: #0ea5e9; /* Light Blue */
    --adm-color-primary-dark: #0284c7;
    --adm-color-text: #1f2937; /* Cool Gray 800 */
    --adm-color-text-light: #6b7280; /* Cool Gray 500 */
    --adm-color-border: #d1d5db; /* Cool Gray 300 */
    --adm-color-background: #f9fafb; /* Cool Gray 50 */
    --adm-color-white: #ffffff;
    --adm-color-success: #22c55e; /* Green 500 */
    --adm-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --adm-radius: 12px;
}

.adm-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.adm-form-header h2 {
    font-size: 28px;
    color: var(--adm-color-text);
    margin-bottom: 8px;
}

.adm-form-header p {
    font-size: 16px;
    color: var(--adm-color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.adm-form-section {
    margin-bottom: 32px;
}

.adm-form-section h3 {
    font-size: 20px;
    color: var(--adm-color-text);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--adm-color-border);
}

.adm-form-section p {
    font-size: 14px;
    color: var(--adm-color-text-light);
    margin-bottom: 16px;
}

.adm-card {
    background: var(--adm-color-white);
    border: 1px solid #e5e7eb;
    border-radius: var(--adm-radius);
    padding: 32px;
    box-shadow: var(--adm-shadow);
    max-width: 960px;
    margin: 40px auto;
}

.adm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .adm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.adm-card label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: var(--adm-color-text);
    font-size: 14px;
}

.adm-card input,
.adm-card select {
    margin-top: 8px;
    border: 1px solid var(--adm-color-border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.adm-card input:focus {
    outline: none;
    border-color: var(--adm-color-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.adm-card input[disabled] {
    background: var(--adm-color-background);
    color: var(--adm-color-text-light);
    cursor: not-allowed;
}

.adm-form-footer {
    text-align: center;
    margin-top: 32px;
}

.adm-button {
    display: inline-block;
    background: var(--adm-color-primary);
    color: var(--adm-color-white);
    border: 0;
    border-radius: 999px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.adm-button:hover {
    background: var(--adm-color-primary-dark);
    transform: translateY(-2px);
}

.adm-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--adm-color-text);
}

.adm-checkbox input {
    width: 18px;
    height: 18px;
}

/* Success Message */
.adm-success-card {
    border-left: 5px solid var(--adm-color-success);
    text-align: center;
}

.adm-success-card h3 {
    color: var(--adm-color-success);
    font-size: 24px;
}

/* Modal */
.adm-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.adm-modal[aria-hidden="false"] {
    display: flex;
}

.adm-modal-dialog {
    position: relative;
    width: auto;
    margin: .5rem;
    pointer-events: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: .3rem;
    max-width: 600px;
    pointer-events: all;
    display: flex;
    flex-direction: column;
}

.adm-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(.3rem - 1px);
    border-top-right-radius: calc(.3rem - 1px);
}

.adm-modal-header .adm-modal-close {
    padding: 1rem 1rem;
    margin: -1rem -1rem -1rem auto;
    background-color: transparent;
    border: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    cursor: pointer;
}

.adm-modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.adm-modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
    max-height: 70vh;
    overflow-y: auto;
}

.adm-modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: .75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(.3rem - 1px);
    border-bottom-left-radius: calc(.3rem - 1px);
}