/* TPP Wholesale API Integration Plugin Styles */

/* General Form Styles */
.tppw-domain-availability-checker,
.tppw-domain-search,
.tppw-domain-order-form,
.tppw-domain-renewal-form,
.tppw-domain-transfer-form,
.tppw-account-balance,
.tppw-order-status,
.tppw-contact-form {
    max-width: 800px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.tppw-domain-availability-checker h3,
.tppw-domain-search h3,
.tppw-domain-order-form h3,
.tppw-domain-renewal-form h3,
.tppw-domain-transfer-form h3,
.tppw-account-balance h3,
.tppw-order-status h3,
.tppw-contact-form h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Form Groups and Layout */
.tppw-form-group {
    margin-bottom: 15px;
}

.tppw-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.tppw-form-group.tppw-half {
    flex: 1;
}

.tppw-form-section {
    margin-bottom: 25px;
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
}

.tppw-form-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
    font-size: 16px;
}

/* Form Controls */
.tppw-input,
.tppw-select,
.tppw-domain-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.tppw-input:focus,
.tppw-select:focus,
.tppw-domain-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Buttons */
.tppw-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.tppw-btn-primary {
    background-color: #0073aa;
    color: white;
}

.tppw-btn-primary:hover {
    background-color: #005a87;
}

.tppw-btn-secondary {
    background-color: #666;
    color: white;
}

.tppw-btn-secondary:hover {
    background-color: #555;
}

.tppw-btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.tppw-form-actions {
    margin-top: 20px;
    text-align: center;
}

/* Domain Checker Specific */
.tppw-domain-checker-form {
    margin-bottom: 20px;
}

.tppw-domain-checker-form .tppw-form-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tppw-domain-checker-form .tppw-domain-input {
    flex: 1;
}

.tppw-domain-checker-form button {
    white-space: nowrap;
}

/* Results and Messages */
.tppw-availability-results,
.tppw-search-results,
.tppw-order-results,
.tppw-renewal-results,
.tppw-transfer-results,
.tppw-balance-display,
.tppw-status-results,
.tppw-contact-results {
    margin-top: 20px;
}

.tppw-success {
    padding: 10px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    margin-bottom: 10px;
}

.tppw-error {
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin-bottom: 10px;
}

.tppw-unavailable {
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    margin-bottom: 10px;
}

/* Domain Search Grid */
.tppw-search-results-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.tppw-domain-result {
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    border: 2px solid;
}

.tppw-domain-result.available {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.tppw-domain-result.unavailable {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.tppw-domain-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.tppw-domain-status {
    font-size: 14px;
    margin-bottom: 10px;
}

.tppw-domain-action {
    margin-top: 10px;
}

/* Alternatives */
.tppw-alternatives {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
}

.tppw-alternatives h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0073aa;
}

.tppw-alternative-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tppw-alternative-domain {
    display: inline-block;
    padding: 5px 10px;
    background: #0073aa;
    color: white;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

.tppw-alternative-domain:hover {
    background: #005a87;
}

/* Suggestions */
.tppw-suggestion {
    margin-top: 10px;
    text-align: center;
}

/* Balance Display */
.tppw-balance-amount {
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
}

/* Order Status */
.tppw-order-status-result {
    font-size: 16px;
    font-weight: bold;
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
    text-align: center;
}

/* Contact Fields */
.tppw-contact-fields {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tppw-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .tppw-form-group.tppw-half {
        flex: none;
    }
    
    .tppw-domain-checker-form .tppw-form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tppw-search-results-grid {
        grid-template-columns: 1fr !important;
    }
    
    .tppw-alternative-list {
        justify-content: center;
    }
}

/* Loading States */
.tppw-loading {
    opacity: 0.6;
    pointer-events: none;
}

.tppw-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: tppw-spin 1s linear infinite;
}

@keyframes tppw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

