* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.card.info-card {
    padding: 25px;
    text-align: center;
    margin-top: 20px;
}

.card.info-card p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.6;
}

.card.info-card a {
    color: #1976d2;
    text-decoration: none;
    word-break: break-all;
}

.card.info-card a:hover {
    text-decoration: underline;
}

.logo {
    max-width: 200px;
    height: auto;
    margin: 0px auto;
    padding-bottom: 60px;
    display: block;
    position: relative;
    z-index: 10;
}

h1 {
    color: #1976d2;
    margin-bottom: 20px;
    text-align: center;
    font-size: 28px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.domain-name {
    color: #1976d2;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
    word-break: break-all;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.hint {
    color: #999;
    font-weight: normal;
    font-size: 12px;
}

.input-field {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: #f9f9f9;
}

.input-field:focus {
    outline: none;
    border-color: #1976d2;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1);
}

.input-field:disabled {
    background-color: #e8e8e8;
    color: #999;
    cursor: not-allowed;
    border-color: #d0d0d0;
}

.input-field::placeholder {
    color: #bbb;
}

/* Select dropdown styling */
select.input-field {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 50px;
}

.validation-message {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #d32f2f;
}

.validation-message.success {
    color: #388e3c;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e8e8e8;
    border-color: #1976d2;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.button-group .btn {
    flex: 1;
}

.button-group .btn-secondary {
    margin-top: 0;
}

.status-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 15px;
    text-align: center;
    font-weight: 500;
    min-height: 20px;
    display: none;
}

.status-message.show {
    display: block;
}

.status-message.available {
    background-color: #c8e6c9;
    color: #2e7d32;
    border: 2px solid #81c784;
}

.status-message.unavailable {
    background-color: #ffcdd2;
    color: #c62828;
    border: 2px solid #ef5350;
}

.status-message.loading {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 2px solid #64b5f6;
}

.status-message.error {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.success-message {
    text-align: center;
    padding: 20px;
}

.success-message p {
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.domain-info {
    background: #e3f2fd;
    border: 2px solid #1976d2;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.domain-name {
    color: #1976d2;
    font-size: 16px;
    margin-bottom: 5px;
}

.domain-price {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.domain-period {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

/* Period Selection */
.period-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.period-option {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.period-option:hover {
    border-color: #1976d2;
    background: #e3f2fd;
}

.period-option.selected {
    border-color: #1976d2;
    background: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.period-years {
    font-size: 18px;
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 5px;
}

.period-price {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Domain Suggestions */
.suggestions-container {
    margin-top: 20px;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    background: #e3f2fd;
    border-color: #64b5f6;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-domain {
    font-weight: 500;
    color: #1976d2;
    font-size: 16px;
}

.suggestion-price {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.suggestion-btn {
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.suggestion-btn:hover {
    background: #1565c0;
}

/* Responsive Design */
@media (max-width: 480px) {
    .card {
        padding: 25px;
        border-radius: 25px;
    }

    h1 {
        font-size: 24px;
    }

    .input-field {
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .suggestion-item {
        padding: 10px 14px;
    }

    .suggestion-domain {
        font-size: 14px;
    }

    .suggestion-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Spinner animation for loading */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(25, 118, 210, 0.3);
    border-top: 2px solid #1976d2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
