/* Full-width container for the form */
.form-container {
    max-width: 100%; /* Make it full-width */
    margin: 0 auto;
    padding: 40px 20px;
    color: #080808;
    text-align: center;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Ensure the content inside aligns properly */
.form-container h2 {
    color: #ff9900;
    margin-bottom: 10px;
    font-size: 28px;
}

.form-container p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.preview-form {
    max-width: 600px;
    margin: 0 auto;
}

.preview-form .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.preview-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.preview-form input {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.submit-button {
    width: 100%;
    padding: 10px 20px;
    background-color: #ff9900;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #e88c00;
}

.result-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: left;
}

.success-message {
    background-color: #0f5132;
    color: #d1e7dd;
    border: 1px solid #badbcc;
}

.error-message {
    background-color: #842029;
    color: #f8d7da;
    border: 1px solid #f5c2c7;
}

/* Footer note styling */
.footer-note {
    margin-top: 20px;
    font-size: 14px;
    color: #ccc;
}

.footer-note strong {
    color: #ff9900;
}

.error {
    border-color: #e74c3c;
    background-color: #fdecea;
}

/* Loading message */
.loading-message {
    color: #3498db;
    font-weight: bold;
}




#site-preview-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: auto;
}

#result-container {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
    word-wrap: break-word;
}

.result-container.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.result-container.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.loading {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.loading:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #ccc;
    border-color: #ccc transparent #ccc transparent;
    animation: loading-spin 1.2s linear infinite;
}

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

.input-error {
    border: 2px solid red;
}

.warning {
    display: inline-block;
    color: orange;
    font-size: 12px;
    margin-left: 5px;
}

/* Responsive styling */
@media (max-width: 768px) {
    #result-container {
        font-size: 14px; /* Adjust font size for smaller screens */
    }

    .form-container {
        padding: 10px;
    }

    .preview-link-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .preview-link-container a {
        word-break: break-word; /* Prevents horizontal overflow */
    }
}
