/* TLDsPro Frontend CSS - White Background Theme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

.dsm-form-container {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.dsm-form-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dsm-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 32px;
    font-family: 'Poppins', sans-serif;
}

.dsm-form-group {
    margin-bottom: 20px;
}

/* Inline Name and Email */
.dsm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.dsm-form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.dsm-form-group input,
.dsm-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #111827;
    transition: all 0.3s ease;
    outline: none;
}

.dsm-form-group input::placeholder,
.dsm-form-group textarea::placeholder {
    color: #9ca3af;
    font-family: 'Poppins', sans-serif;
}

.dsm-form-group input:focus,
.dsm-form-group textarea:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.dsm-form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
}

.dsm-form-help {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    font-family: 'Poppins', sans-serif;
}

/* Clean Checkbox Design */
.dsm-checkbox-container {
    margin: 24px 0;
}

.dsm-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    gap: 12px;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.dsm-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.dsm-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    background: #ffffff;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dsm-checkbox-label:hover .dsm-checkmark {
    border-color: #000000;
}

.dsm-checkbox-label input[type="checkbox"]:checked + .dsm-checkmark {
    background: #000000;
    border-color: #000000;
}

.dsm-checkbox-label input[type="checkbox"]:checked + .dsm-checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.dsm-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: #000000;
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dsm-submit-btn:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dsm-submit-btn:active {
    transform: translateY(0);
}

.dsm-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #9ca3af;
}

.dsm-btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: dsm-spin 1s linear infinite;
    margin-right: 10px;
    display: inline-block;
}

@keyframes dsm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cloudflare Turnstile container */
.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Success/Error Messages */
.dsm-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid;
}

.dsm-message.success {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #15803d;
}

.dsm-message.error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

/* Input validation states */
.dsm-form-group input.error,
.dsm-form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Modal Styles */
.dsm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: dsm-fadeIn 0.3s ease;
}

.dsm-modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    animation: dsm-slideUp 0.3s ease;
}

.dsm-modal-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px 0;
    text-align: center;
}

.dsm-modal-body {
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.dsm-loader {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #000000;
    border-radius: 50%;
    animation: dsm-spin 1s linear infinite;
    margin: 0 auto 24px auto;
}

.dsm-modal-body p {
    color: #6b7280;
    margin-bottom: 24px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.dsm-availability-results {
    text-align: left;
    margin: 24px 0;
}

.dsm-result-section {
    margin-bottom: 24px;
}

.dsm-result-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
    font-family: 'Poppins', sans-serif;
}

.dsm-result-section.available h4 {
    color: #059669;
}

.dsm-result-section.unavailable h4 {
    color: #dc2626;
}

.dsm-domain-list {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
    word-break: break-all;
    font-family: 'Poppins', sans-serif;
}

.dsm-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.dsm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dsm-btn-primary {
    background: #000000;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dsm-btn-primary:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dsm-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.dsm-btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* Animations */
@keyframes dsm-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dsm-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dsm-form-container {
        margin: 15px;
        padding: 15px;
    }
    
    .dsm-form-card {
        padding: 28px 24px;
    }
    
    .dsm-form-title {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .dsm-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .dsm-modal-content {
        padding: 24px;
        margin: 20px;
    }
    
    .dsm-modal-footer {
        flex-direction: column;
    }
    
    .dsm-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dsm-form-container {
        margin: 10px;
        padding: 10px;
    }
    
    .dsm-form-card {
        padding: 24px 20px;
    }
    
    .dsm-form-title {
        font-size: 18px;
    }
    
    .dsm-form-group input,
    .dsm-form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Additional enhancements for professional look */
.dsm-form-card {
    position: relative;
    overflow: hidden;
}

.dsm-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000000 0%, #374151 100%);
}

/* Focus indicators for accessibility */
.dsm-checkbox-label:focus-within .dsm-checkmark {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.dsm-submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Improved loading state */
.dsm-submit-btn:disabled .dsm-btn-text {
    opacity: 0;
}

.dsm-submit-btn:disabled .dsm-btn-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}