.affordable-domains-container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.domain-search-field {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
.domain-search-field input[type="text"] {
flex: 1;
padding: 12px;
border: 2px solid #ddd;
border-radius: 4px;
font-size: 16px;
transition: border-color 0.3s ease;
}
.domain-search-field input[type="text"]:focus {
outline: none;
border-color: #007cba;
}
.domain-search-field button {
padding: 12px 24px;
background: #007cba;
color: white;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.domain-search-field button:hover {
background: #005a87;
}
.domain-search-field button:disabled {
background: #ccc;
cursor: not-allowed;
}
#loading {
text-align: center;
padding: 20px;
color: #666;
}
#search-results {
margin-top: 20px;
}
.domain-result {
border: 1px solid #ddd;
border-radius: 8px;
padding: 20px;
margin-bottom: 15px;
background: #f9f9f9;
}
.domain-result h4 {
margin: 0 0 15px 0;
color: #333;
font-size: 18px;
}
.domain-status {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 15px;
padding: 10px;
border-radius: 4px;
}
.domain-status.available {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.domain-status.unavailable {
background: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
.status-icon {
font-size: 18px;
font-weight: bold;
}
.status-text {
font-weight: 500;
}
.domain-price {
margin-bottom: 15px;
font-size: 16px;
color: #333;
}
.register-domain-btn {
background: #28a745;
color: white;
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s ease;
}
.register-domain-btn:hover {
background: #218838;
}
.domain-error {
background: #f8d7da;
color: #721c24;
padding: 15px;
border-radius: 4px;
border: 1px solid #f5c6cb;
}
.registration-form {
background: #fff;
border: 1px solid #ddd;
border-radius: 8px;
padding: 20px;
margin-top: 20px;
}
.registration-form h3 {
margin: 0 0 20px 0;
color: #333;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: 500;
color: #333;
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
outline: none;
border-color: #007cba;
}
.form-group textarea {
height: 80px;
resize: vertical;
}
.form-actions {
display: flex;
gap: 10px;
margin-top: 20px;
}
.submit-registration {
background: #007cba;
color: white;
border: none;
padding: 12px 24px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s ease;
}
.submit-registration:hover {
background: #005a87;
}
.cancel-registration {
background: #6c757d;
color: white;
border: none;
padding: 12px 24px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s ease;
}
.cancel-registration:hover {
background: #545b62;
}
.registration-success {
background: #d4edda;
color: #155724;
padding: 20px;
border-radius: 4px;
border: 1px solid #c3e6cb;
text-align: center;
}
.registration-success h3 {
margin: 0 0 10px 0;
}
.registration-error {
background: #f8d7da;
color: #721c24;
padding: 15px;
border-radius: 4px;
border: 1px solid #f5c6cb;
}
.registration-error button {
margin-top: 10px;
background: #dc3545;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
}
.registration-error button:hover {
background: #c82333;
} @media (max-width: 768px) {
.affordable-domains-container {
margin: 10px;
padding: 15px;
}
.domain-search-field {
flex-direction: column;
}
.domain-search-field input[type="text"] {
margin-bottom: 10px;
}
.form-actions {
flex-direction: column;
}
.form-actions button {
width: 100%;
}
}