/* Catalog Modal Styles */
.catalog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.catalog-modal.catalog-modal-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.catalog-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.catalog-modal-content {
    position: relative;
    background-color: var(--bg-white);
    border-radius: 16px;
    max-width: 90%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.catalog-modal.catalog-modal-open .catalog-modal-content {
    transform: scale(1) translateY(0);
}

.catalog-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
    z-index: 10;
}

.catalog-modal-close:hover {
    background-color: var(--gray-100);
}

.catalog-modal-close .material-symbols-outlined {
    font-size: 24px;
    line-height: 1;
}

.catalog-modal-header {
    padding: 32px 32px 24px 32px;
    border-bottom: 1px solid var(--border-lighter);
}

.catalog-modal-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.catalog-modal-body {
    padding: 24px 32px 32px 32px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-modal-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.catalog-request-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    margin-bottom: 0;
}

.form-error {
    position: absolute;
    top: 100%;
    left: 0;
    font-size: 12px;
    color: #dc3545;
    margin-top: 5px;
    line-height: 1.4;
    padding: 0;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.form-label .required {
    color: #dc3545;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    background-color: var(--bg-white);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--bg-dark);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Only show invalid styling after form submission attempt */
.catalog-request-form.submitted .form-input.invalid {
    border-color: #dc3545;
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    min-height: 20px;
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Hide error messages in form-message area - errors are shown under inputs instead */
.form-message-error {
    display: none !important;
}

.form-actions {
    display: flex;
    margin-top: 12px;
}

.form-actions .btn {
    width: 100%;
    font-family: var(--font-body);
}

.form-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Catalog Modal Responsive adjustments */
@media (max-width: 767.98px) {
    .catalog-modal-content {
        max-width: 95%;
        max-height: 95vh;
    }

    .catalog-modal-header {
        padding: 24px 24px 20px 24px;
    }

    .catalog-modal-title {
        font-size: 24px;
        padding-right: 40px;
    }

    .catalog-modal-body {
        padding: 20px 24px 24px 24px;
    }

    .catalog-modal-close {
        top: 12px;
        right: 12px;
    }

}

@media (min-width: 768px) {
    .catalog-modal-content {
        max-width: 500px;
    }
}

/* Success State Styles */
#catalog-form-container,
#catalog-success-container {
    width: 100%;
}

.catalog-success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0;
}

.success-checkmark {
    margin-bottom: 24px;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.success-subtext {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.success-subtext #success-email-display {
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsive adjustments for success state */
@media (max-width: 767.98px) {
    .success-title {
        font-size: 20px;
    }

    .success-subtext {
        font-size: 14px;
    }

    .success-checkmark svg {
        width: 56px;
        height: 56px;
    }
}

