/**
 * TeepTrak Assets - Frontend CSS v1.0
 * Styles the asset download form (distinct from teeptrak-forms classes)
 */

.teeptrak-asset-container {
    max-width: 560px;
    background: #fff;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    padding: 28px;
    margin: 24px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.teeptrak-asset-container.tta-style-highlight {
    background: #232120;
    color: #fff;
    border-color: #232120;
}

.teeptrak-asset-container.tta-style-compact {
    padding: 18px;
    max-width: 420px;
}

.teeptrak-asset-container .tta-title {
    font-size: 22px;
    font-weight: 700;
    color: #232120;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.teeptrak-asset-container.tta-style-highlight .tta-title {
    color: #fff;
}

.teeptrak-asset-container .tta-subtitle {
    font-size: 14px;
    color: #555;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.teeptrak-asset-container.tta-style-highlight .tta-subtitle {
    color: #ccc;
}

/* Form rows */
.teeptrak-asset-form .tta-row {
    margin-bottom: 14px;
}

.teeptrak-asset-form .tta-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.teeptrak-asset-form .tta-field {
    display: block;
}

.teeptrak-asset-form .tta-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #232120;
    margin-bottom: 4px;
}

.teeptrak-asset-container.tta-style-highlight .tta-field label {
    color: #fff;
}

.teeptrak-asset-form .tta-required {
    color: #EB352C;
}

.teeptrak-asset-form .tta-field input[type="text"],
.teeptrak-asset-form .tta-field input[type="email"],
.teeptrak-asset-form .tta-field input[type="tel"],
.teeptrak-asset-form .tta-field input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    color: #232120;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.teeptrak-asset-form .tta-field input:focus {
    outline: none;
    border-color: #EB352C;
    box-shadow: 0 0 0 3px rgba(235, 53, 44, 0.1);
}

.teeptrak-asset-form .tta-field input.tta-field-error {
    border-color: #dc3545;
    background: #fff5f5;
}

/* Consent checkbox */
.teeptrak-asset-form .tta-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.teeptrak-asset-form .tta-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.teeptrak-asset-container.tta-style-highlight .tta-consent {
    color: #ccc;
}

/* Submit button */
.teeptrak-asset-form .tta-submit {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #EB352C;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.teeptrak-asset-form .tta-submit:hover {
    background: #c92920;
}

.teeptrak-asset-form .tta-submit:active {
    transform: translateY(1px);
}

.teeptrak-asset-form .tta-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Legal microcopy */
.teeptrak-asset-form .tta-legal {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

.teeptrak-asset-container.tta-style-highlight .tta-legal {
    color: #999;
}

/* Message (success/error) */
.teeptrak-asset-form .tta-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

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

.teeptrak-asset-form .tta-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.teeptrak-asset-form .tta-message a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
    .teeptrak-asset-container {
        padding: 20px 16px;
    }
    .teeptrak-asset-form .tta-row-half {
        grid-template-columns: 1fr;
    }
}
