/**
 * Globe Sample Form Styles - Classic Table Layout
 */

.globe-sample-form-wrapper {
    max-width: 700px;
    margin: 20px 0;
}

.globe-sample-form-wrapper h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
}

.globe-sample-form table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.globe-sample-form table td {
    padding: 5px;
    vertical-align: middle;
}

.globe-sample-form table td:first-child {
    width: 120px;
}

.globe-sample-form input[type="text"],
.globe-sample-form input[type="email"],
.globe-sample-form input[type="number"],
.globe-sample-form select {
    padding: 4px 6px;
    border: 1px solid #999;
    font-size: 14px;
    font-family: inherit;
}

.globe-sample-form input[type="text"],
.globe-sample-form input[type="email"] {
    width: 100%;
    max-width: 300px;
}

.globe-sample-form select {
    width: 100%;
    max-width: 300px;
    padding: 4px;
}

.globe-sample-form input[type="number"] {
    width: 60px;
}

.globe-sample-form input:focus,
.globe-sample-form select:focus {
    outline: 2px solid #007cba;
    outline-offset: 1px;
}

.globe-sample-form input.error,
.globe-sample-form select.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.globe-sample-form p {
    margin: 10px 0;
    line-height: 1.5;
}

.form-response {
    padding: 12px;
    border-radius: 3px;
    margin: 15px 0;
}

.form-response.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-response.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.submit-button {
    padding: 8px 20px;
    background: #007cba;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.submit-button:hover {
    background: #005a87;
}

.submit-button:active {
    transform: scale(0.98);
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.button-loader {
    display: inline-block;
}

.spinner {
    animation: rotate 2s linear infinite;
    width: 16px;
    height: 16px;
}

.spinner .path {
    stroke: white;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .globe-sample-form table td {
        display: block;
        width: 100% !important;
        padding: 3px 0;
    }
    
    .globe-sample-form table td:first-child {
        font-weight: bold;
        margin-top: 10px;
    }
    
    .globe-sample-form input[type="text"],
    .globe-sample-form input[type="email"],
    .globe-sample-form select {
        max-width: 100%;
    }
}

/* Download Link Styles */
.globe-download-link {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    text-decoration: none;
    font-weight: normal;
}

.globe-download-link:hover {
    background: #005a87;
    color: white;
}

.globe-download-link:before {
    content: "⬇ ";
    margin-right: 5px;
}
