/* Styles of resources/views/frontend/compare.blade.php (moved out of the template so browsers cache them). */
/* ===================================
   EMAIL MODAL STYLING
   =================================== */

.email-modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.email-modal-header {
    background: var(--color-surface-soft);
    color: var(--color-text);
    padding: 1rem 1.25rem 0.75rem 1.25rem;
    border-radius: 16px 16px 0 0;
    border: none;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.email-modal-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3d3934 0%, #3d3934 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.email-modal-icon i {
    font-size: 1.5rem;
    color: white;
}

.email-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
}

.email-modal-subtitle {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    color: var(--color-text-soft);
}

.email-modal-header .btn-close {
    opacity: 0.8;
    margin-left: auto;
}

.email-modal-header .btn-close:hover {
    opacity: 1;
}

.email-modal-body {
    padding: 2rem;
    background: var(--color-surface);
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label-modern {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-soft);
    margin: 0;
}

.form-label-modern .required-star {
    color: var(--color-danger);
    margin-left: 2px;
}

.form-label-modern .optional-text {
    font-size: 0.75rem;
    font-weight: 400;
    color: #9ca3af;
    font-style: italic;
}

.form-control-modern {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--color-surface-soft);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--color-fill-strong);
    background: white;
    box-shadow: 0 0 0 4px rgba(43, 39, 36, 0.1);
}

.form-control-modern::placeholder {
    color: #9ca3af;
}

textarea.form-control-modern {
    resize: vertical;
    min-height: 100px;
}

.form-check-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;

    border-radius: 8px;
}

.form-check-input-modern {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-check-input-modern:checked {
    background-color: var(--color-fill-strong);
    border-color: var(--color-fill-strong);
}

.form-check-label-modern {
    font-size: 0.9375rem;
    color: var(--color-text-soft);
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.email-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.btn-cancel,
.btn-submit {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cancel {
    background: var(--color-surface-soft);
    color: var(--color-text-soft);
}

.btn-cancel:hover {
    background: var(--color-surface-sunken);
    transform: translateY(-1px);
}

.btn-submit {
    background: linear-gradient(135deg, #3d3934 0%, #2a2622 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(61, 57, 52, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 57, 52, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit i {
    font-size: 1rem;
}

/* Responsive Email Modal */
@media (max-width: 576px) {
    .email-modal-body {
        padding: 1.5rem;
    }

    .email-modal-header {
        padding: 1.25rem;
    }

    .email-modal-icon {
        width: 45px;
        height: 45px;
    }

    .email-modal-icon i {
        font-size: 1.25rem;
    }

    .email-modal-title {
        font-size: 1.25rem;
    }

    .email-modal-subtitle {
        font-size: 0.8125rem;
    }

    .email-modal-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}
